Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

subtract function

A difference: the function form of -.

How to write it

subtract(a, b)

a
The number to subtract from. Takes an expression.
b
The number to subtract. Takes an expression.

Examples

  • subtract⁡(7,3)=4\displaystyle \operatorname{subtract}(7, 3) = 4
    subtract(7, 3)

    In the solver, subtract(7, 3) gives 4.

    Open in the solver
  • times

    Product of numbers: the function form of *.

  • sqrt

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

  • trunc

    A number with its fractional part cut off.

  • sign

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

  • abs

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

  • round

    Nearest whole number, with halves rounded away from zero.