[Patches] [ python-Patches-552452 ] Add degrees() & radians() to math module
noreply@sourceforge.net
noreply@sourceforge.net
Sun, 12 May 2002 20:57:59 -0700
Patches item #552452, was opened at 2002-05-05 02: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: Closed
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: Raymond Hettinger (rhettinger)
Date: 2002-05-12 22:57
Message:
Logged In: YES
user_id=80475
Revised patch attached below.
Committed as mathmodule 2.67,
libmath.tex 1.26 and test_math.py 1.14.
Closing patch and feature request.
----------------------------------------------------------------------
Comment By: Tim Peters (tim_one)
Date: 2002-05-12 21: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