Advanced math functions

Revision as of 02:24, 15 December 2015 by Bbecane (talk | contribs)

These functions can be accessed under the Definition menu Advanced Math command, or in the Object Finder dialog, Advanced Math library. Functions in this section are generally for more advanced mathematical users than those found in Math functions. There are additional advanced math functions covered in Importance weighting.

Arccos(x), Arcsin(x), Arctan2(y, x)

The inverse trigonometric functions. For each the parameter x is between 0 and 1, and the result is in degrees. Arccos returns a result between 0 and 180 degrees:

Arccos(1) → 0
Arccos(Cos(45)) → 45

Arcsin returns a result between -90 and 90 degrees:

Arcsin(1) → 90
Arcsin(Sin(45)) → 45

Arctan2 gives the arctangent of y/x without losing information about which quadrant the point is in. The result is the angle in degrees between the x axis and the point (x, y) in the two dimensional plane, in the range (-180, 180):

Arctan2(-1,1) → -45
Arctan2(0, -1) → 180
Arctan2(0, 0) → 0

BesselJ(x, n), BesselY(x, n), BesselI(x, n), BesselK(x, n)

Bessel functions of the first kind (J), second kind (Y), and modified Bessel functions of the first (I) and second (K) kinds. These are used in engineering applications involving harmonics in cylindrical coordinates. The second parameter, n, is the order of the Bessel function and can be integer or fractional. When n is non-integer, x must be non-negative. These functions are not exposed on the Advanced Math library menu.

Cosh(x), Sinh(x), Tanh(x)

The hyperbolic cosine, sine, and tangent of x, x assumed to be in degrees.

Cosh(0) → 1
Sinh(0) → 0
Tanh(INF) → 1

Lgamma(x)

Returns the Log Gamma function of x. Without numeric overflow, this function is equivalent to ln(GammaFn(X)). Because the gamma function grows so rapidly, it is often much more convenient to use LGamma() to avoid numeric overflow.

LGamma(10) → 12.8

See Also

Comments


You are not allowed to post comments.