arithmetic functions

These arithmetic functions act on numbers, but some of them are also act on more abstract entities, such as polynomials.
  • + -- addition
  • plus -- addition
  • - -- subtraction
  • - (unary) -- minus
  • minus -- minus
  • difference -- subtraction
  • * -- multiplication
  • times -- multiplication
  • / -- division
  • // -- quotient
  • % -- remainder
  • mod -- reduction modulo n
  • ^ -- power
  • power -- power
  • ! -- factorial
  • xor -- bitwise EXCLUSIVE OR of two integers
  • & -- bitwise AND of two integers
  • | -- bitwise OR of two integers
  • << -- shift bits
  • >> -- shift bits
  • gcd -- greatest common divisor
  • odd -- predicate for odd integers
  • even -- predicate for even integers
  • floor -- floor
  • isPrime -- primality test
  • factor -- factor
  • Numeric -- numeric conversion
  • Go to main index.

    Go to concepts index.