missing arg for complex number

Discussion in 'Python' started by Manlio Perillo, Jun 17, 2004.

  1. 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
    Manlio Perillo, Jun 17, 2004
    #1
    1. Advertising

  2. Manlio Perillo

    Dan Bishop Guest

    Manlio Perillo <> wrote in message news:<>...
    > 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)
    Dan Bishop, Jun 18, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. news.amnet.net.au
    Replies:
    1
    Views:
    559
    =?UTF-8?b?TMSByrtpZSBUZWNoaWU=?=
    Apr 13, 2004
  2. n00m
    Replies:
    5
    Views:
    387
  3. Raphael Bauduin

    methods with different arg number

    Raphael Bauduin, Oct 21, 2003, in forum: Ruby
    Replies:
    2
    Views:
    75
    Raphael Bauduin
    Oct 21, 2003
  4. Replies:
    7
    Views:
    163
  5. Replies:
    21
    Views:
    275
    Barry Schwarz
    Mar 5, 2014
Loading...

Share This Page