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


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

Output complex numbers in polar (exponential) form?

From "Mr.CRC" <crobcBOGUS@REMOVETHISsbcglobal.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Output complex numbers in polar (exponential) form?
Date 2011-09-02 07:32 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j3q0pm$6fh$1@smc.vnet.net> (permalink)

Show all headers | View raw


Hi:

For ex:

In[2]:= ToExp[z_] := Abs[z] E^(I Arg[z])

In[4]:= ToExp[3 + 4 I]

Out[4]= 5 E^(I ArcTan[4/3])


However, this converts back to rectangular form when a float is involved:

In[5]:= ToExp[3 + 4. I]

Out[5]= 3.+ 4. I


Any idea how to make a consistent exponential complex number output?


Thanks.


-- 
_____________________
Mr.CRC
crobcBOGUS@REMOVETHISsbcglobal.net
SuSE 10.3 Linux 2.6.22.17

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


Thread

Output complex numbers in polar (exponential) form? "Mr.CRC" <crobcBOGUS@REMOVETHISsbcglobal.net> - 2011-09-02 07:32 +0000
  Re: Output complex numbers in polar (exponential) form? Simon <simonjtyler@gmail.com> - 2011-09-03 12:08 +0000
    Re: Output complex numbers in polar (exponential) form? "Mr.CRC" <crobcBOGUS@REMOVETHISsbcglobal.net> - 2011-09-08 09:27 +0000

csiph-web