Bad Math Module Notation re: atan2
david_ullrich at my-deja.com
david_ullrich at my-deja.com
Sat Jun 3 11:48:37 EDT 2000
In article <pcovgzstc9b.fsf at math.ntnu.no>,
Harald Hanche-Olsen <hanche at math.ntnu.no> wrote:
[...]
> | Am I mising something?
>
> Yes. The documentation (meaning the library reference) is wrong, but
> the implementation is right:
>
> >>> math.atan2(0,1)
> 0.0
> >>> math.atan2(1,0)
> 1.57079632679
>
> In fact, even the function's doc string is right (Py 1.5.2):
>
> >>> print math.atan2.__doc__
> atan2(y, x)
>
> Return atan(y/x).
As opposed to the 1.5.2 library reference, which says
atan2 (y, x)
Return atan(y / x).
Looks kinda the same to me... (maybe you got a different
version of the docs?)
> you-should-listen-to-what-they-do-but-not-what-they-say-ly y'rs,
> --
> * Harald Hanche-Olsen <URL:http://www.math.ntnu.no/~hanche/>
> - "There arises from a bad and unapt formation of words
> a wonderful obstruction to the mind." - Francis Bacon
>
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list