Message Boards Message Boards

0
|
3408 Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

Conjugate[expr]

Posted 10 years ago

I was wondering is there a way to replace complex I to -I. All variables in the expression are real, so basically i just need that switch of I.

POSTED BY: Al Guy
4 Replies
ComplexExpand[Conjugate[{a + I b, c - I b, d + I (e/f), g + I (h^i)}]]

This is more reliable in terms of how it will handle numbers such as 4+5*I. You might want to wrap inside Simplify[...,Assumptions->h>0].

POSTED BY: Daniel Lichtblau
Posted 10 years ago

For long expressions, it takes too long.

POSTED BY: Al Guy
Posted 10 years ago

Thanks!

POSTED BY: Al Guy

How about

{a + I b, c - I b, d + I (e/f), g + I (h^i)} /. Complex[0, 1] -> Complex[0, -1]

(*Answer: {a - I b, -I b + c, d - (I e)/f, g - I h^i}*)
POSTED BY: Isaac Abraham
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