MathGroup Archive 2001

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

Search the Archive

Re:symbolic calculations with complex numbers


usually this shoud be enough

In[40]:=
Abs[p + I q]//ComplexExpand
Out[40]=
Abs[p + I q]

but this time we need the following (who knows why ?)
In[41]:=
Abs[p+I q]//ComplexExpand[#,TargetFunctions->{Re,Im}]&

Out[41]=
Sqrt[p^2 + q^2]


---
Robert Nowak (robert.nowak at ims.co.at)
IMS Nanofabrication GmbH
A-1020 Wien, Schreygasse 3, Austria
Phone: (+43 1)2144894-32, Fax: (+43 1)2144894-99





  • Prev by Date: fit to page using inline postscript
  • Next by Date: Bump Function
  • Previous by thread: symbolic calculations with complex numbers
  • Next by thread: Re: symbolic calculations with complex numbers