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: Math-module lacks some docs and funcs
Type: enhancement Stage:
Components: None Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: bosna, rhettinger, tim.peters
Priority: normal Keywords:

Created on 2001-05-23 04:57 by bosna, last changed 2022-04-10 16:04 by admin. This issue is now closed.

Messages (4)
msg53154 - (view) Author: Rikard Bosnjakovic (bosna) Date: 2001-05-23 04:57
>>> import math
>>> print math.cos.__doc__
cos(x)

Return the cosine of x.


1. That doc-string is not very sufficient, since it
does not tell whether x should be in radians or
degrees. Same goes with sin, asin, acos and the rest of
the degree-functions.

2. ceil() and floor() could have some more information
of what the functions does. Not all users have taken
math-courses and know about them.

3. Add a degrees(x) and radians(x) that converts "x" to
degrees (from a radian argument) and to radians (from a
degree argument) respectively, it's pretty useful.
msg53155 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2001-06-04 18:38
Logged In: YES 
user_id=31435

Chagned to Feature Request, Interpreter Core, and added two 
entries to PEP 42 (one for fatter docs, another for the new 
functions).
msg53156 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2002-05-05 15:55
Logged In: YES 
user_id=80475

As of version 2.2, comments #1 and #2 were resolved.
Submitted patch for #3:  www.python.org/sf/552452
msg53157 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2002-05-13 04:03
Logged In: YES 
user_id=80475

Comment #3 resolved.

Committed as mathmodule 2.67, 
libmath.tex 1.26 and test_math.py 1.14.

Comments #1 and #2 already solved.

Closing patch and feature request.
History
Date User Action Args
2022-04-10 16:04:04adminsetgithub: 34532
2001-05-23 04:57:59bosnacreate