Development

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • why no arg, abs methods for comlex type?

    0 answers - 2140 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit


    "Daniel S" <uval (AT) rz (DOT) uni-karlsruhe.dewrote in message
    news:dd03cn$f7c$1 (AT) news2 (DOT) rz.uni-karlsruhe.de
    I agree that this is a deficiency. I would think .angle() should be a
    I don't know what nomenclature is used in english speaking
    mathematical world for angle of a complex number
    I learned it in german as Arg(z) Arg standing for argument
    you see, we would have named it differently, hence making
    it difficult for the reader, eventually creating redundancy
    I am aware of the usage of argument to mean the angle in polar
    representation, but I don't like it. The word argument already has two
    other meanings, one in common English, the other in math/CS. The latter
    meaning is the inputs to a function, and that is how the word is used in
    Python (though the former applies more to many c.l.p threads ;-) To me,
    the polar angle has no connection with either meaning and so the usage is
    'like Greek' to me. Whereas angle is exactly what it is.
    As for Greek: I first learned r(adius),theta (versus x,y or real,imag) as
    the names for polar coordinates or the polar representation for complex
    numbers and only ran into arg much later in some contexts. And I have seen
    complex number implementations that use the equivalent of c.r() and
    c.theta(). But I did not suggest that for one of the reasons I don't like
    'lambda': its fine if you already know it and arbitrary if you don't. (Is
    theta used in Germany?)
    It is possible that a cmath2 module, written in Python, could be
    useful.
    I hope so
    I will google for cmath2, I never heard about it
    That is because we have not written it yet. The allroots function could be
    the first addition, if it is not present elsewhere. The 'could be' was
    meant in the sense of 'if someone were to write it' rather than 'if you
    were to read it' ;-)
    Terry J. Reedy
    Content-Type: text/plain; charset="us-ascii"
    MIME-Version: 1.0
    Content-Transfer-Encoding: 7bit
    Content-Disposition: inline

Re: why no arg, abs methods for comlex type?


max 4000 letters.
Your nickname that display:
In order to stop the spam: 5 + 4 =
QUESTION ON "Development"

EMSDN.COM