Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Math-module lacks some docs and funcs #34532

Closed
bosna mannequin opened this issue May 23, 2001 · 4 comments
Closed

Math-module lacks some docs and funcs #34532

bosna mannequin opened this issue May 23, 2001 · 4 comments
Labels
type-feature A feature request or enhancement

Comments

@bosna
Copy link
Mannequin

bosna mannequin commented May 23, 2001

BPO 426539
Nosy @tim-one, @rhettinger

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2002-05-13.04:03:19.000>
created_at = <Date 2001-05-23.04:57:59.000>
labels = ['type-feature']
title = 'Math-module lacks some docs and funcs'
updated_at = <Date 2002-05-13.04:03:19.000>
user = 'https://bugs.python.org/bosna'

bugs.python.org fields:

activity = <Date 2002-05-13.04:03:19.000>
actor = 'rhettinger'
assignee = 'none'
closed = True
closed_date = None
closer = None
components = ['None']
creation = <Date 2001-05-23.04:57:59.000>
creator = 'bosna'
dependencies = []
files = []
hgrepos = []
issue_num = 426539
keywords = []
message_count = 4.0
messages = ['53154', '53155', '53156', '53157']
nosy_count = 3.0
nosy_names = ['tim.peters', 'rhettinger', 'bosna']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue426539'
versions = []

@bosna
Copy link
Mannequin Author

bosna mannequin commented May 23, 2001

>>> 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.

@bosna bosna mannequin closed this as completed May 23, 2001
@bosna bosna mannequin added the type-feature A feature request or enhancement label May 23, 2001
@bosna bosna mannequin closed this as completed May 23, 2001
@bosna bosna mannequin added the type-feature A feature request or enhancement label May 23, 2001
@tim-one
Copy link
Member

tim-one commented Jun 4, 2001

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).

@rhettinger
Copy link
Contributor

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

@rhettinger
Copy link
Contributor

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.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants