Separate Imaginary and Real parts of an expression
07-03-2018, 07:50 AM
Post: #1
 blevita Junior Member Posts: 29 Joined: Jun 2018
Separate Imaginary and Real parts of an expression
Hello

Is there a way to automatically let the prime separate the real part and the imaginary part of an expression?

Take a look at the attached picture

Attached File(s) Thumbnail(s)

07-03-2018, 10:31 AM
Post: #2
 parisse Senior Member Posts: 1,316 Joined: Dec 2013
RE: Separate Imaginary and Real parts of an expression
evalc
07-03-2018, 10:50 AM
Post: #3
 blevita Junior Member Posts: 29 Joined: Jun 2018
RE: Separate Imaginary and Real parts of an expression
(07-03-2018 10:31 AM)parisse Wrote:  evalc

Thank you very much for your quick response.
According to the help, it looks like this is exactly what i have searched for.

Unfortunatley the example from the help gives me a different answert than the one which is shown in the help.

Does anybody know why im getting IM and RE in the answer?

Thanks.

Attached are some pictures

Attached File(s) Thumbnail(s)

07-03-2018, 11:05 AM
Post: #4
 Didier Lachieze Senior Member Posts: 1,641 Joined: Dec 2013
RE: Separate Imaginary and Real parts of an expression
(07-03-2018 10:50 AM)blevita Wrote:  Does anybody know why im getting IM and RE in the answer?

You may have "Complex" checked in the CAS settings, if so x, y and z are supposed to be complex variables and you get IM and RE in the answer. Uncheck "Complex" and you should get the same result as the one shown in the help.
07-03-2018, 11:06 AM
Post: #5
 blevita Junior Member Posts: 29 Joined: Jun 2018
RE: Separate Imaginary and Real parts of an expression
(07-03-2018 11:05 AM)Didier Lachieze Wrote:
(07-03-2018 10:50 AM)blevita Wrote:  Does anybody know why im getting IM and RE in the answer?

You may have "Complex" checked in the CAS settings, if so x, y and z are supposed to be complex variables and you get IM and RE in the answer. Uncheck "Complex" and you should get the same result as the one shown in the help.

Woow!!! Great
You made my CAS great again

07-03-2018, 03:25 PM
Post: #6
 Tim Wessman Senior Member Posts: 2,293 Joined: Dec 2013
RE: Separate Imaginary and Real parts of an expression
Yup, that "complex" flag needs to go away and probably will sometime soon.

TW

Although I work for HP, the views and opinions I post here are my own.
 « Next Oldest | Next Newest »

User(s) browsing this thread: 1 Guest(s)