question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DOC: https://numpy.org/doc/stable/reference/routines.math.html

See original GitHub issue

There are inconsistencies in the short descriptions here. Sometimes the definite article is used and sometimes not, which makes it hard to see whether two functions do the same job or not, because the texts don’t align:

fmod(x1, x2, /[, out, where, casting, …]) | Return the element-wise remainder of division.
mod(x1, x2, /[, out, where, casting, order, …]) | Return element-wise remainder of division

Then some of the descriptions say “return …”, some say “returns”, and some say neither. Isn’t the “return(s)” always redundant? Obviously the function returns what it has computed.

Finally, the indefinite article in “Returns a true division of the inputs, element-wise” suggests that there is more than one true division. Is this really the case?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
lalitmusmadecommented, Oct 30, 2021

Working on this as part of the PyDataGlobal 2021 NumPy-SciPy sprint

0reactions
rossbarcommented, Jul 11, 2020

I think this will need a PR with a concrete proposal to push it forward. I’ll leave it open for now, but will close in the near future if there’s no proposal to move forward. Please feel free to contribute suggestions!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mathematical functions — NumPy v1.24 Manual
Trigonometric functions# · Hyperbolic functions# · Rounding# · Sums, products, differences# · Exponents and logarithms# · Other special functions# · Floating point ...
Read more >
math — Mathematical functions — Python 3.11.1 documentation
This module provides access to the mathematical functions defined by the C standard. These functions cannot be used with complex numbers; use the...
Read more >
<math> - MathML - MDN Web Docs
The <math> MathML element is the top-level MathML element, used to write a single mathematical formula. It can be placed in HTML content ......
Read more >
Math (Java Platform SE 8 ) - Oracle Help Center
The class Math contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric ...
Read more >
JavaScript Math Object - W3Schools
The JavaScript Math object allows you to perform mathematical tasks on numbers. ... Unlike other objects, the Math object has no constructor.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found