Content-Length: 317944 | pFad | http://github.com/numpy/numpy/pull/29297/commits/78ebea88e892a892c154388c0031b2f484026369

3D 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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
DOC: make descriptions of hyperbolic functions consistent
  • Loading branch information
partev authored Jun 30, 2025
commit 78ebea88e892a892c154388c0031b2f484026369
6 changes: 3 additions & 3 deletions numpy/_core/code_generators/ufunc_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def add_newdoc(place, name, doc):

add_newdoc('numpy._core.umath', 'arcsinh',
"""
Inverse hyperbolic sine element-wise.
Inverse hyperbolic sine, element-wise.

Parameters
----------
Expand Down Expand Up @@ -534,7 +534,7 @@ def add_newdoc(place, name, doc):

add_newdoc('numpy._core.umath', 'arctanh',
"""
Inverse hyperbolic tangent element-wise.
Inverse hyperbolic tangent, element-wise.

Parameters
----------
Expand Down Expand Up @@ -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?


Equivalent to ``np.sinh(x)/np.cosh(x)`` or ``-1j * np.tan(1j*x)``.

Expand Down
Loading








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/commits/78ebea88e892a892c154388c0031b2f484026369

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy