Skip to content

Commit

Permalink
Merge pull request #5739 from jperla/master
Browse files Browse the repository at this point in the history
Document divrem()
  • Loading branch information
jiahao committed Feb 9, 2014
2 parents a9f702b + 67077df commit d2a4e5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/manual/mathematical-operations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,7 @@ Function Description
``div(x,y)`` truncated division; quotient rounded towards zero
``fld(x,y)`` floored division; quotient rounded towards ``-Inf``
``rem(x,y)`` remainder; satisfies ``x == div(x,y)*y + rem(x,y)``; sign matches ``x``
``divrem(x,y)`` returns ``(div(x,y),rem(x,y))``
``mod(x,y)`` modulus; satisfies ``x == fld(x,y)*y + mod(x,y)``; sign matches ``y``
``mod2pi(x)`` modulus with respect to 2pi; ``0 <= mod2pi(x) < 2pi``
``gcd(x,y...)`` greatest common divisor of ``x``, ``y``,...; sign matches ``x``
Expand Down

0 comments on commit d2a4e5c

Please sign in to comment.