MathGroup Archive 2004

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

Search the Archive

Re: Question on ComplexExpand


On 5 Oct 2004, at 17:37, Carlos Felippa wrote:

> *This message was transferred with a trial version of CommuniGate(tm) 
> Pro*
> This question is related to a previous post, and to a project in
> stability of a G&C feedback system I am working on.
>
> Is there a way to get ComplexExpand to automatically convert Abs to
> Sqrt,  Arg to ArcTan, etc., as target functions?    For example
>
>              ComplexExpand[Abs[x+y*I]]   gives  Sqrt[x^2+y^2]
>              ComplexExpand[Arg[x+y*I]]   gives  ArcTan[y/x]
>
> (Note: ComplexExpand assumes all symbols are real by default.)
> I wasnt able to find an option to do that in 4.2.1.  Thanks.
>


ComplexExpand[Abs[x + y*I], TargetFunctions -> {Re, Im}]


Sqrt[x^2 + y^2]


ComplexExpand[Arg[x + y*I], TargetFunctions -> {Re, Im}]


ArcTan[x, y]




Andrzej Kozlowski
Chiba, Japan
http://www.akikoz.net/~andrzej/
http://www.mimuw.edu.pl/~akoz/


  • Prev by Date: Re: notation for integration limits
  • Next by Date: Reads in only part of file
  • Previous by thread: Question on ComplexExpand
  • Next by thread: Business Development Manager