Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Factorial (factorial)

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

How to write it

factorial(n)

n
A whole number, zero or more. Takes a whole number.

Examples

  • 5!=120\displaystyle 5! = 120
    factorial(5)

    In the solver, factorial(5) gives 120.

    Open in the solver
  • double_factorial

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

  • floor

    Greatest whole number not above a number.

  • exp

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

  • frac

    Fractional part of a number.

  • gcd

    Greatest common divisor of whole numbers.

  • divide

    A quotient: the function form of /.