Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Sign function (sign)

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

How to write it

sign(x)

x
A number. Takes a number.

Examples

  • sgn⁡(−4)=−1\displaystyle \operatorname{sgn}(-4) = -1
    sign(-4)

    In the solver, sign(-4) gives -1.

    Open in the solver
  • sqrt

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

  • round

    Nearest whole number, with halves rounded away from zero.

  • subtract

    A difference: the function form of -.

  • re

    Real part of a complex number.

  • times

    Product of numbers: the function form of *.

  • quotient

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