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. Advertisements

  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. Advertisements

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:
    827
    =?UTF-8?b?TMSByrtpZSBUZWNoaWU=?=
    Apr 13, 2004
  2. Stanimir Stamenkov
    Replies:
    2
    Views:
    1,020
    Stanimir Stamenkov
    Oct 25, 2005
  3. Robert Mark Bram
    Replies:
    0
    Views:
    858
    Robert Mark Bram
    Feb 4, 2007
  4. n00m
    Replies:
    5
    Views:
    524
  5. Kottiyath

    How complex is complex?

    Kottiyath, Mar 18, 2009, in forum: Python
    Replies:
    22
    Views:
    1,082
  6. Raphael Bauduin

    methods with different arg number

    Raphael Bauduin, Oct 21, 2003, in forum: Ruby
    Replies:
    2
    Views:
    133
    Raphael Bauduin
    Oct 21, 2003
  7. Replies:
    7
    Views:
    422
  8. Replies:
    21
    Views:
    771
    Barry Schwarz
    Mar 5, 2014
Loading...