Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #5639

Re: Taking the Arg of a complex number

From Alexei Boulbitch <Alexei.Boulbitch@iee.lu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Taking the Arg of a complex number
Date 2011-10-14 09:56 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j79117$i3j$1@smc.vnet.net> (permalink)

Show all headers | View raw


Here ComplexExpand should help. Try this:



(* This is youe expression*)

x=Exp[I*\[CurlyPhi]]

E^(I \[CurlyPhi])



(* This is the answer *)

y=ComplexExpand[Arg@x]

ArcTan[Cos[\[CurlyPhi]],Sin[\[CurlyPhi]]]



(*  Let us check, if it returns an expected result *)



y/.\[CurlyPhi]->\[Pi]/4



\[Pi]/4



Have fun.







Would appreciate any help here, endless Googling has not revealed the answer to me:



If I define a complex number symbolically, such as x = A Exp[I phi], why does Arg[x] never return the answer I expect, phi? Using Refine with the as sumptions phi is real and between 0 and 2 pi, and that A is greater than 0 doesn't seem to help. All I get is Arg[Exp[I phi]]







Alexei BOULBITCH, Dr., habil.

IEE S.A.

ZAE Weiergewan,

11, rue Edmond Reuter,

L-5326 Contern, LUXEMBOURG



Office phone :  +352-2454-2566

Office fax:       +352-2454-3566

mobile phone:  +49 151 52 40 66 44



e-mail: alexei.boulbitch@iee.lu<mailto:alexei.boulbitch@iee.lu>





Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Taking the Arg of a complex number Alexei Boulbitch <Alexei.Boulbitch@iee.lu> - 2011-10-14 09:56 +0000

csiph-web