MathGroup Archive 2003

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

Search the Archive

Re: how to specify something is "real"

  • To: mathgroup at smc.vnet.net
  • Subject: [mg43181] Re: [mg43161] how to specify something is "real"
  • From: Peter Pein <peter1963 at totalise.co.uk>
  • Date: Sat, 16 Aug 2003 02:54:01 -0400 (EDT)
  • References: <200308150827.EAA18123@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

I forgot the easy way:

   ComplexExpand[I*x + Sin[verycomplex] + Cos[x], {verycomplex}]
yields
   Cos[x] + Cosh[Im[verycomplex]] Sin[Re[verycomplex]] +
   I (x + Cos[Re[verycomplex]] Sinh[Im[verycomplex]])

ComplexExpand handles all variables as real except the ones in the list (2nd 
argument).

Peter


pgp wrote:
> Hi,
> This is probably a dumb question, but I was trying to use Conjugate[] on an
> expression that contains terms like Cos[x], and mathematica doesn't take it
> for granted that Cos[x] is real, and hence the end result contain lots of
> Conjugate's that can't be reduced.
> Could someone tell me if it's possible to tell mathematica which parts of
> the expressions are supposed to be real, so it'll get rid of all those
> Conjugates?
> Thanks a lot.
> -K
> 



  • Prev by Date: Re: how to specify something is "real"
  • Next by Date: Mechanical Systems: Mathematica 5 Compatible Update Now Available
  • Previous by thread: Re: how to specify something is "real"
  • Next by thread: Re: how to specify something is "real"