Content-Length: 281008 | pFad | http://github.com/numpy/numpy/pull/29297

F8 DOC: make descriptions of hyperbolic functions consistent by partev · Pull Request #29297 · numpy/numpy · GitHub
Skip to content

DOC: make descriptions of hyperbolic functions consistent #29297

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

partev
Copy link
Contributor

@partev partev commented Jun 30, 2025

currently if you go to https://numpy.org/devdocs/reference/routines.math.html#hyperbolic-functions
there are a few inconsistencies in hyperbolic function descriptions shown in the figure below:
Screenshot 2025-06-30 18 45 07

this PR fixes those minor issues.

@@ -4256,7 +4256,7 @@ def add_newdoc(place, name, doc):

add_newdoc('numpy._core.umath', 'tanh',
"""
Compute hyperbolic tangent element-wise.
Hyperbolic tangent, element-wise.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is what motivated the PR?

If we are already changing this, I think it should be Element-wise hyperbolic tangent. What do you think? Whatever we decide, there are many other appearances of this in the file. It would be nice to align them all to the same template.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, that's what motivated the PR. I am ok with "Element-wise hyperbolic tangent". There are lots of cases like this in ufunc_docstrings.py. Should we start doing in batches, let's say "Trigonometric functions" and "Hyperbolic functions" first?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/numpy/numpy/pull/29297

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy