7  Reference

7.1  Built-in functions

Function

Description

int(x)

Returns the nearest integer to x, using rounding arithmetic

abs(x)

Returns the absolute value of x

log(x),ln(x)

Return the base-10 logarithm (log) or the natural logarithm (ln) of x

sqrt(x)

Returns the square root of x

sin(x),cos(x),tan(x)

Return the sine, cosine, tangent of x, taking account of the specified units of angle

asin(x),acos(x),atan(x)

Return the arc sine, arc cosine, arc tangent of x, taking account of the specified units of angle

sinh(x),cosh(x),tanh(x)

Return the hyperbolic sine, hyperbolic cosine, hyperbolic tangent of x

asinh(x),acosh(x),atanh(x)

Return the inverse hyperbolic sine, inverse hyperbolic cosine, inverse hyperbolic tangent of x

fac(x)

Returns x!, i.e. n(n-1)(n-2)...(1)

7.2  Constants

Constant

Description

Pi

The ratio of a circle's circumference to its diameter: rcalc uses the math library definition, which on my machine is 3.14159265358979323846

e

The base of natural logarithms: rcalc uses the math library definition, which on my machine is 2.7182818284590452354