MathGroup Archive 2006

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

Search the Archive

Re: Simplification and Arg[]


Andrew Moylan schrieb:
> Should Mathematica be able to simplify the following expression? (It is 
> easily seen to be zero under the given condition, x > 0.)
> 
> FullSimplify[
> 	Arg[1 + I * x] + Arg[1 - I * x],
> 	{x > 0}
> ]
> 
> In particular, I would have expected the following to yield ArcTan[b / 
> a], from which the above expression is easily reduced to zero:
> 
> FullSimplify[
> 	Arg[a + I b],
> 	{a > 0, b > 0}
> ]
> 
> Any ideas?
> 
> Cheers,
> 
> Andrew
> 
> P.S. Apologies if I have sent this twice; my original message seems not 
> to have worked.
> 
Hi Andrew,

use ComplexExpand[]:

ComplexExpand[Arg[1+I*x]+Arg[1-I*x],TargetFunctions\[Rule]{Re,Im}]
--> 0

Assuming[a>0<b,
   FullSimplify@ComplexExpand[Arg[a+I b],TargetFunctions\[Rule]{Re,Im}]]
--> ArcTan[a,b]

Peter


  • Prev by Date: Unit sphere triangulation
  • Next by Date: How to write formatted number into a file
  • Previous by thread: Re: Simplification and Arg[]
  • Next by thread: Re: Simplification and Arg[]