Function Log10(x)

Log10

Log10(
     x             ! (input) numerical expression
     )

Arguments

x

A scalar numerical expression in the range \((0,\infty)\).

Return Value

The function Log10 returns the base-10 logarithm of \(x\).

Graph

../../_images/log10.png

Example

p_return := Log(10);
! Result is 1

Note

  • A run-time error results if x is outside the range \((0,\infty)\).

  • The function Log10 can be used in constraints of nonlinear mathematical programs.

See also

The functions Exp, Log. Arithmetic functions are discussed in full detail in Arithmetic Functions of the Language Reference.