Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
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
Solved! Go to Solution.
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)
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)
Thanks a lot.
It is worked just fine!
Sergey