Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Elementary functions

Powers, roots, exponentials and logarithms, absolute value, rounding, factorials and binomial coefficients, greatest common divisors, and the largest or smallest of some numbers.

34 functions

Described functions

  • gcd

    Greatest common divisor of whole numbers.

  • sqrt

    Square root; sqrt(x) is the power x^(1/2).

  • exp

    Exponential function; exp(x) is the power e^x.

  • log

    Logarithm: natural with ln, or to any base with log.

  • abs

    Absolute value of a number, or modulus of a complex one.

  • binomial

    Binomial coefficient: the ways to choose k items out of n.

  • ceil

    Least whole number not below a number.

  • factorial

    Factorial: n! is the product of the whole numbers from 1 to n.

  • floor

    Greatest whole number not above a number.

  • lcm

    Least common multiple of whole numbers.

  • max

    The largest of some numbers.

  • min

    The smallest of some numbers.

  • mod

    Remainder of a division of whole numbers.

  • round

    Nearest whole number, with halves rounded away from zero.

  • sign

    Sign of a number: -1, 0 or 1.

  • arg

    Argument of a complex number: its angle in radians.

  • conj

    Complex conjugate.

  • divide

    A quotient: the function form of /.

  • double_factorial

    Double factorial: n!! multiplies every second number down from n.

  • frac

    Fractional part of a number.

  • im

    Imaginary part of a complex number.

  • log10

    Logarithm to base 10.

  • log2

    Logarithm to base 2.

  • negate

    The negative of a number: the function form of a minus sign.

  • plus

    Sum of numbers: the function form of +.

  • power

    A power: the function form of ^.

  • quotient

    Whole-number quotient of a division, without the remainder.

  • re

    Real part of a complex number.

  • subtract

    A difference: the function form of -.

  • times

    Product of numbers: the function form of *.

  • trunc

    A number with its fractional part cut off.

More functions in this category

Nobody has described these yet: each is listed with its first form.

Other categories

Last updated