cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Separation of the complex values into the real and imaginary

Sergey
14-Alexandrite

Separation of the complex values into the real and imaginary

Hello!

 

Is it, in general, possible to separate a complex value into a real and imaginary parts in Mathcad?

If it possible, how can we do so?

Lets say that I have a complex root "r=0.2+3i". I want to assign the real value of this root as a=0.2 and imaginary as b=3i. Do you have any suggestions?

 

Best regards,

Sergey

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Werner_E
24-Ruby V
(To:Sergey)

If, lets say, z is the variable name, you may use the funtions Re(z) and Im(z) to get real and imaginary part of z.

In case of your example you would write

 

a:=Re(r)

b:=Im(r)

View solution in original post

3 REPLIES 3
Werner_E
24-Ruby V
(To:Sergey)

If, lets say, z is the variable name, you may use the funtions Re(z) and Im(z) to get real and imaginary part of z.

In case of your example you would write

 

a:=Re(r)

b:=Im(r)

Sergey
14-Alexandrite
(To:Werner_E)

Thanks a lot.

It is worked just fine!

 

Sergey

 

cn.png

Top Tags