This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Add degrees() & radians() to math module
Type: Stage:
Components: Extension Modules Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: rhettinger, tim.peters
Priority: low Keywords: patch

Created on 2002-05-05 07:46 by rhettinger, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
math3.diff rhettinger, 2002-05-13 03:57 Revised patch reflecting Tim's comments
Messages (3)
msg39881 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2002-05-05 07:46
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.
msg39882 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2002-05-13 02:36
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.
msg39883 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2002-05-13 03:57
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.
History
Date User Action Args
2022-04-10 16:05:17adminsetgithub: 36556
2002-05-05 07:46:09rhettingercreate