Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: complex coefficients and rules...

  • To: mathgroup at
  • Subject: [mg28215] Re: [mg28203] complex coefficients and rules...
  • From: BobHanlon at
  • Date: Thu, 5 Apr 2001 03:00:29 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

y /: Conjugate[y] = y;



Bob Hanlon

In a message dated 2001/4/4 4:33:54 AM, easther at writes:

>I am having some trouble applying some simple rules to complex
>For instance,
> Exp[-4 I y] /. I-> -I
> Exp[-4 I y]
>This seemed a bit odd, so I looked at the "full form" and found,
>Power[E, Times[Complex[0, -4], y]]
>However, trying the match 
> Exp[-4 I y] /. a_ I -> -a I
>doesn't work either, since FullForm[a I ]  is Times[Complex[0, -1], a]
>and so the patterns do not match.  
>All I want is a simple complex conjugate (the Conjugate function does
>not assume that y is real), that maps I->-I. The more tricky 
> Exp[-4 I y] /. Complex[a_ ,b_] -> Complex[a,-b] 
>does work, but it is seems a little cumbersome.
>In any case my question is: is there a general way to avoid having to do
>this, or is Mathematica always going to assume that any algebraic
>constant is potentially complex?

  • Prev by Date: Re: Automatic expansion of Log[a^n] for a,n explicit positive integers?
  • Next by Date: Re: Polar Grids in Mathematica
  • Previous by thread: complex coefficients and rules...
  • Next by thread: Re: complex coefficients and rules...