Message Boards Message Boards

1
|
4614 Views
|
5 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Get real and imaginary parts separated as a list u+Iv -> {u,v}?

Posted 7 years ago

How do I get ReIm [u+Iv] to return {u,v} rather than {Re[u+Iv],Im[u+Iv]}? i.e., how can one declare u real?

POSTED BY: James Thoreen
5 Replies
Posted 7 years ago

Thanks to both Daniel Lichtblau and Frank Kampas for advising that ReIm and ComplexExpand work together. Wonder if that should have been easier to search among all the great Mathematica documentation.

POSTED BY: James Thoreen
ReIm[u + I v] // ComplexExpand
POSTED BY: Frank Kampas
Posted 7 years ago

Thanks.

POSTED BY: James Thoreen

Could use ReIm on numbers. For symbolic expressions there is ComplexExpand[{Re[expr],Im[expr]}].

POSTED BY: Daniel Lichtblau
Posted 7 years ago

Thanks.

POSTED BY: James Thoreen
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract