[Patches] [ python-Patches-552452 ] Add degrees() & radians() to math module

noreply@sourceforge.net noreply@sourceforge.net
Sun, 12 May 2002 19:36:54 -0700


Patches item #552452, was opened at 2002-05-05 03:46
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=552452&group_id=5470

Category: Modules
Group: Python 2.3
Status: Open
>Resolution: Accepted
Priority: 3
Submitted By: Raymond Hettinger (rhettinger)
>Assigned to: Raymond Hettinger (rhettinger)
Summary: Add degrees() & radians() to math module

Initial Comment:
Add functions to convert degrees and radians to the 
math module.

Closes item #3 on feature request 
www.python.org/sf/426539 .  The other two items have 
already been implemented.  The two related entries in 
PEP 42 can be closed also.

----------------------------------------------------------------------

>Comment By: Tim Peters (tim_one)
Date: 2002-05-12 22:36

Message:
Logged In: YES 
user_id=31435

Looks good to me, except that

x * (1.0 / degToRad)

introduces two rounding errors for no reason.  Marked 
Accepted assuming this line gets changed to

x / degToRad

Note that this also needs doc and test-suite changes.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=552452&group_id=5470