Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > missing arg for complex number

Reply
Thread Tools

missing arg for complex number

 
 
Manlio Perillo
Guest
Posts: n/a
 
      06-17-2004
Hi.
As I can see, the arg function for complex numbers
-- for polar representation: z = abs(x) exp(arg(z)) --
is missing!
Why?



Thanks and regards Manlio Perillo
 
Reply With Quote
 
 
 
 
Dan Bishop
Guest
Posts: n/a
 
      06-18-2004
Manlio Perillo <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>. ..
> Hi.
> As I can see, the arg function for complex numbers
> -- for polar representation: z = abs(x) exp(arg(z)) --
> is missing!
> Why?


Probably just an oversight. But it's easy to implement.

def phase(z):
return math.atan2(z.imag, z.real)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to pass a multiline arg to exec('some.exe arg')? n00m Python 5 05-05-2008 02:58 PM
Trouble with setTimeout(arg, arg) nat.hourt@gmail.com Javascript 7 11-12-2005 05:13 PM
[XML Schema] Content type of complex type definition with complex content Stanimir Stamenkov XML 2 10-25-2005 10:16 AM
For expert on complex loops (reposted) - complex looping problem news.amnet.net.au Java 1 04-13-2004 07:10 AM
methods with different arg number Raphael Bauduin Ruby 2 10-21-2003 11:42 AM



Advertisments