Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Absolute value function (abs)

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

How to write it

abs(x)

x
The number or expression. Takes an expression.

Examples

  • ∣−3∣=3\displaystyle \left| -3 \right| = 3
    abs(-3)

    In the solver, abs(-3) gives 3.

    Open in the solver
  • ∣3−5i∣=34\displaystyle \left| 3-5 i \right| = \sqrt{34}
    abs(3 - 5i)

    In the solver, abs(3 - 5i) gives sqrt(34).

    Open in the solver
  • arg

    Argument of a complex number: its angle in radians.

  • trunc

    A number with its fractional part cut off.

  • binomial

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

  • times

    Product of numbers: the function form of *.

  • ceil

    Least whole number not below a number.

  • subtract

    A difference: the function form of -.