Function to convert a complex number in algebraic form, Mathematics

Assignment Help:

Go back to the complex numbers code in Figures 50 and 51 of your notes. Add code fragments to handle the following:

1. A function for adding two complex numbers given in algebraic form (i.e., in the form x + iy)

2. The possibility of representing complex numbers in phasor form (i.e., in the form z(cos(θ) + isin(θ), where z = √x2+y2 and θ = y/x). The corresponding structure should have two fields: one for z and the other for θ.

3. A function to convert a complex number in algebraic form to a complex number in phasor form

4. A function to convert a complex number in phasor form to a complex number in algebraic form

5. Write a client program to test your code. The client program should do the following:

a. request the x and y values of two complex numbers in algebraic form ((2 + i4) and (2 + i2)). The program should then:

b. add the two complex numbers and display the numbers and their sum in both algebraic and phasor forms

c. multiply the two complex numbers and display the numbers and their product in both algebraic and phasor forms

in (b) and (c) above, pass the sum and product respectively to the function you wrote in (4) above and display the corresponding complex numbers in algebraic form


Related Discussions:- Function to convert a complex number in algebraic form

#title., Julia must do a 70:30 split of all of her profits with the Departm...

Julia must do a 70:30 split of all of her profits with the Department of Athletics. Julia also has the ability to sell soft drinks. If she decide to sell soft drinks, she must agre

Vectors, If r,R denote position vectors of points on the straight lines in ...

If r,R denote position vectors of points on the straight lines in the direction of a and b respectively, and if n is a unit vector perpendicular to both these directions, show that

Concurrent deviation method, Normal 0 false false false ...

Normal 0 false false false EN-IN X-NONE X-NONE

Evaluate the volume of a basketball along with the volume, Dawn wants to ev...

Dawn wants to evaluate the volume of a basketball along with the volume of a tennis ball. Which formula will she use? The volume of a sphere is 4/3 times π times the radius cub

How to dealing with exponents on negative bases, How to Dealing With Expone...

How to Dealing With Exponents on Negative Bases ? Exponents work just the same way on negative bases as they do on positive ones: (-2)0 = 1 Any number (except 0) raised to the

Hours, jeff left hartford at 2:15 pm and arrived in boston at 4:45 pm how l...

jeff left hartford at 2:15 pm and arrived in boston at 4:45 pm how long did the drive take him?

Sin3? = cos2? find the most general values of ?, sin3θ = cos2θ find the mos...

sin3θ = cos2θ find the most general values of θ satisfying the equatios? sinax + cosbx = 0 solve ? Solution)  sin (3x) = sin(2x + x) = sin(2x)cos(x) + cos(2x)sin(x) = 2sin(x)cos(

Exponets, what does the three mean in the power ?

what does the three mean in the power ?

Example of uniform distribution, Q. Samantha wrote a computer program to r...

Q. Samantha wrote a computer program to randomly generate two-digit numbers between 00 and 99. Let X be the random 2 digit number generated by the computer. Find the distributio

Times fractons, In a garden, 1/8 of the flowers are tulips. 1/4 of the tuli...

In a garden, 1/8 of the flowers are tulips. 1/4 of the tulips are red. What fraction of the flowers in the garden are red tulips?

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd