Elementary Functions

abs(x)

The abs function returns the absolute value of the real number num. To calculate the absolute value of a complex number, use cabs.

acos(x)

The acos function returns the inverse cosine of num in radians. In complex expressions, num is complex, and acos returns a complex value.

acosh(x)

The acosh function returns the inverse hyperbolic cosine of num. In complex expressions, num is complex, and acosh returns a complex value.

alog(x)

The alog function returns 10^num.

asin(x)

The asin function returns the inverse sine of num in radians. In complex expressions, num is complex, and asin returns a complex value.

asinh(x)

The asinh function returns the inverse hyperbolic sine of num. In complex expressions, num is complex, and asinh returns a complex value.

atan(x)

The atan function returns the inverse tangent of num in radians. In complex expressions, num is complex, and atan returns a complex value. Results are in the range -p/2 to p/2.

atan2(y1,x1)

The atan2 function returns the angle in radians whose tangent is y1 x1. Results are in the range -p to p.

atanh(x)

The atanh function returns the inverse hyperbolic tangent of num. In complex expressions, num is complex, and atanh returns a complex value.

cos(x)

The cos function returns the cosine of angle which is in radians. In complex expressions, num is complex, and cos(num) returns a complex value.

cosh(x)

The cosh function returns the hyperbolic cosine of num. In complex expressions, num is complex, and cosh(num) returns a complex value.

exp(x)

The exp function returns e^num. In complex expressions, num is complex, and exp(num) returns a complex value.

ln(x)

The ln function returns the natural logarithm of num, -INF if num is 0, or NaN if num is less than 0. In complex expressions, num is complex, and ln(num) returns a complex value.

log(x)

The log function returns the log base 10 of num. It returns -INF if num is 0, and returns NaN if num is less than 0.

sign(x)

The sign function returns -1 if num is negative or 1 if it is not negative.

sin(x)

The sin function returns the sine of angle which is in radians. In complex expressions, angle is complex, and sin(angle) returns a complex value.

sinh(x)

The sinh function returns the hyperbolic sine of num. In complex expressions, num is complex, and sinh(num) returns a complex value.

sinc(x)

The sinc function returns sin(num)/num. The sinc function returns 1.0 when num is zero. num must be real.

sqrt(x)

The sqrt function returns the square root of num or NaN if num is negative. In complex expressions, num is complex, and sqrt(num) returns a complex value.

tan(x)

The tan function returns the tangent of angle which is in radians. In complex expressions, num is complex, and tan(num) returns a complex value.

tanh(x)

The tanh function returns the hyperbolic tangent of num. In complex expressions, num is complex, and tanh(num) returns a complex value.