Showing results for

Showing results for

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Jun 21, 2019
06:49 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Jun 21, 2019
06:49 AM

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

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

Jun 21, 2019
06:55 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Jun 21, 2019
06:55 AM

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)

3 REPLIES 3

Jun 21, 2019
06:55 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Jun 21, 2019
06:55 AM

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)

Jun 21, 2019
06:58 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Jun 21, 2019
06:58 AM

Thanks a lot.

It is worked just fine!

Sergey

Jun 21, 2019
06:58 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

Jun 21, 2019
06:58 AM