You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current numpy documentation for fmod says that "This is the NumPy implementation of the Python modulo operator %"
But this is confusing, since fmod and % give different results
fmod(-3,2) -> -1
-3 % 2 -> 1
Furthermore, the np.remainder documentation makes no mention of fmod, nor of sign conventions. This is bad, since users coming from Matlab may use remainder to translate the Matlab 'rem', while the two things are not the same.
The text was updated successfully, but these errors were encountered:
Current numpy documentation for fmod says that "This is the NumPy implementation of the Python modulo operator %"
But this is confusing, since fmod and % give different results
fmod(-3,2) -> -1
-3 % 2 -> 1
Furthermore, the np.remainder documentation makes no mention of fmod, nor of sign conventions. This is bad, since users coming from Matlab may use remainder to translate the Matlab 'rem', while the two things are not the same.
The text was updated successfully, but these errors were encountered: