Re: [Numpy-discussion] RAdian <--> degres conversion

2007-12-16 Thread Anne Archibald
On 16/12/2007, Hans Meine <[EMAIL PROTECTED]> wrote: > (*: It's similar with math.hypot, which I have got to know and appreciate > nowadays.) I'd like to point out that math.hypot is a nontrivial function which is easy to get wrong: In [6]: x=1e200; y=1e200; In [7]: math.hypot(x,y) Out[7]: 1.41

Re: [Numpy-discussion] RAdian <--> degres conversion

2007-12-16 Thread Hans Meine
On Sonntag 16 Dezember 2007, Neil Crighton wrote: > Do we really need these functions in numpy? I mean it's just > multiplying/dividing the value by pi/180 (who knows why they're in the > math module..). I like them in math ("explicit is better than implicit"*), but I don't want to comment on wh

Re: [Numpy-discussion] RAdian <--> degres conversion

2007-12-16 Thread Neil Crighton
Do we really need these functions in numpy? I mean it's just multiplying/dividing the value by pi/180 (who knows why they're in the math module..). Numpy doesn't have asin, acos, or atan either (they're arcsin, arcos and arctan) so it isn't a superset of the math module. I would like there to be

Re: [Numpy-discussion] RAdian <--> degres conversion

2007-12-14 Thread David M. Cooke
On Dec 14, 2007, at 14:33 , Christopher Barker wrote: > HI all, > > Someone on the wxPython list just pointed out that the math module now > includes includes angle-conversion utilities: > degrees.__doc__ > degrees(x) -> converts angle x from radians to degrees radians.__doc__ > radians(

[Numpy-discussion] RAdian <--> degres conversion

2007-12-14 Thread Christopher Barker
HI all, Someone on the wxPython list just pointed out that the math module now includes includes angle-conversion utilities: >>> degrees.__doc__ degrees(x) -> converts angle x from radians to degrees >>> radians.__doc__ radians(x) -> converts angle x from degrees to radians Not a big deal, bu