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

Solving Trig Equations, How would you solve the equation: 1+ sin(theta)= 2 ...

How would you solve the equation: 1+ sin(theta)= 2 cos^2(theta)?

Function expansion, The functions {sinmx; cosmx}; m = 0,....∞ form a ...

The functions {sinmx; cosmx}; m = 0,....∞ form a complete set over the interval x ∈ [ -Π, Π]. That is, any function f(x) can be expressed as a linear superposition of these

Positive real exponents, Simplify following and write the answers with only...

Simplify following and write the answers with only positive exponents.  (a) ( x 8.2 y -0.26 z 2 ) 0.5  (b)  (x 3 y -4.1   / x -2.7 ) -3 Solution  (a) (x 8.2

Greens function, construct the green''s function that satisfies dG''''-(2x+...

construct the green''s function that satisfies dG''''-(2x+1)G''+(x+1)G=delta(x-s), G(0,s)=G(1,s)=0

Integration, why we study integration..?? uses

why we study integration..?? uses

Equation, Solve : 4x2+2x+3=0 Ans) x^2 + (1/2)x = -(3/4) (x+1/4)^2 = 1/...

Solve : 4x2+2x+3=0 Ans) x^2 + (1/2)x = -(3/4) (x+1/4)^2 = 1/16 - 3/4 = -11/16 implies x = (-1+i(11)^(1/2))/4 and its conjugate.

Linear equation, The sum of the digit number is 7. If the digits are revers...

The sum of the digit number is 7. If the digits are reversed , the number formed is less than the original number. find the number

Ogive, How many types of ogives?

How many types of ogives?

How much, If one acre costs $2500 how much does .39 of an acre cost

If one acre costs $2500 how much does .39 of an acre cost?

Circumference of a circle, How far will a bowling ball goes in one rotation...

How far will a bowling ball goes in one rotation if the ball has a diameter of 10 inches? (π = 3.14) 1. 78.5 in 2. 31.4 in 3. 62.8 in 4. 15.7 in 2. The circumfere

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