Skip to main content
1-Visitor
July 4, 2013
Solved

symbolic real and imaginary part of a complex function

  • July 4, 2013
  • 4 replies
  • 3115 views

Hello

Would you please let me know how I can calculate the real and imaginary part of a complex function using mathcad symbolic?

Thank you very much

Payman

Best answer by Werner_E

You should really state which version you use and show by example and attached WS what exactly you are after!

Look if something of the following fulfills your needs:

Re_Im.png

4 replies

12-Amethyst
July 4, 2013

It can be as follows:

Capture.PNG

A trivial example, but difficult to know if it is sufficient without your particular example.

Note that the assume is necessary, otherwise mathcad will assume that all varaibles can be complex.

regards

Andy

Werner_E
Werner_E25-Diamond IAnswer
25-Diamond I
July 4, 2013

You should really state which version you use and show by example and attached WS what exactly you are after!

Look if something of the following fulfills your needs:

Re_Im.png

1-Visitor
July 5, 2013

Werner, how do you type-in the underline like the "z" in your worksheet?

Werner_E
25-Diamond I
July 5, 2013

Its a user defined style. As far as I remember from your sheets you change the default appearance, too.

Go to "Format"/"Equation..." under "Style Name" you see three predefined ones and seven user defineable. I renamed "User2" to "complex" and changed the appearance to look like the variables but additionally underlined.

Everytime you want to use the style you would have to type the name and then change the default style "variable" to "complex" (drop down selector in the menubar). Its tedious and I wish I had a keyboard shortcut for it or at least would be able to do it via right click menu, but...

One drawback is when you use variable names with subscripts - the subscript is underlined, too and this does not look that good

ZC.png

one possible way out is to define C as 0 (somewhere hidden) and use a vector subscript

ZC2.png

but this can be pretty confusing.