MathFcn

MathFcn is a C  code class that returns the results of numerous mathematical functions.

The graphic on the left contains hyperlinks to the respective lines in the table.

Methods

Arguments

Return Value

On activation of method

abs

arg::cont

cont

Returns the absolute value of arg.

acos

arg::cont

cont

Returns the arccos of arg.

asin

arg::cont

cont

Returns the arcsin of arg.

atan

arg::cont

cont

Returns the arctangent of arg.

atan2

arg1::cont

arg2::cont

cont

Returns the principal value of the arctangent of arg1/arg2, expressed in radians.

To compute the value, the function takes into account the sign of both arguments in order to determine the quadrant.

Note

arg1 and arg2 must not be 0 at the same time.

ceil

arg::cont

cont

Returns the smallest integer number not smaller than arg.

cos

arg::cont

cont

Returns the cosine of arg.

cosh

arg::cont

cont

Returns the hyperbolic cosine of arg.

coth

arg::cont

cont

Returns the hyperbolic cotangent of arg.

csch

arg::cont

cont

Returns the hyperbolic cosecant of arg.

exp

arg::cont

cont

Returns earg.

floor

arg::cont

cont

Returns the largest integer value not larger than arg.

fmod

x::cont

y::cont

cont

Returns the floating point remainder of x/y. The return value has the same sign as x.

limit

n::cont

m::cont

x::cont

cont

Returns m if x <= m; x if m < x < n; n if x => n.

log

arg::cont

cont

Returns the natural logarithm (logarithm with base e) of arg.

log10

arg::cont

cont

Returns the common logarithm (logarithm with base 10) of arg.

max

x::cont

y::cont

cont

Returns the larger value of x and y.

min

x::cont

y::cont

cont

Returns the smaller value of x and y.

pow

x::cont

y::cont

cont

Returns xy.

sch

arg::cont

cont

Returns the hyperbolic secant of arg.

sign

arg::cont

cont

Returns 1.0 if arg > 0.0; 0.0 if arg = 0.0; -1.0 if arg < 0.0.

sin

arg::cont

cont

Returns the sine of arg.

sinh

arg::cont

cont

Returns the hyperbolic sine of arg.

sqrt

arg::cont

cont

Returns the square root of arg.

tan

arg::cont

cont

Returns the tangent of arg.

tanh

arg::cont

cont

Returns the hyperbolic tangent of arg.

pi

none

cont

Returns the number p.