LINGO offers a number of standard, mathematical functions. These

advertisement
LINGO offers a number of standard, mathematical functions. These functions return a single
result based on one or more scalar arguments. These functions are listed below:
@ABS( X)
Returns the absolute value of X.
@ACOS( X)
Returns the inverse cosine, or arccosine, of X, where X is an angle in radians.
@ACOSH( X)
Returns the inverse hyperbolic cosine of X, where X is an angle in radians.
@ASIN( X)
Returns the inverse sine, or arcsine, of X, where X is an angle in radians.
@ASINH( X)
Returns the inverse hyperbolic sine of X, where X is an angle in radians.
@ATAN( X)
Returns the inverse tangent, or arctangent, of X, where X is an angle in radians.
@ATAN2( Y, X)
Returns the inverse tangent of Y/X.
@ATANH( X)
Returns the inverse hyperbolic tangent of X, where X is an angle in radians.
@COS( X)
Returns the cosine of X, where X is an angle in radians.
@COSH( X)
Returns the hyperbolic cosine of X, where X is an angle in radians.
@EXP( X)
Returns e (2.718281...) raised to the power X.
@FLOOR( X)
This returns the integer part of X. To be specific, if X ≥ 0, @FLOOR returns the largest
integer, I, such that I ≤ X. If X is negative, @FLOOR returns the most negative integer, I,
such that I ≥ X.
@LGM( X)
Returns the natural (base e) logarithm of the gamma function of X (i.e., log of (X - 1)!). It
is extended to non-integer values of X by linear interpolation.
@LOG( X)
Returns the natural logarithm of X.
@LOG10( X)
Returns the base-10 logarithm of X.
@MOD( X, Y)
Returns the value of X modulo Y, or, in other words, the remainder of an integer divide of
X by Y.
@PI()
Returns the value of PI, i.e., 3.14159265....
@POW( X, Y)
Returns the value of X raised to the Y power.
@SIGN( X)
Returns -1 if X < 0, 0 if X = 0 and +1 if X > 0.
@SIN( X)
Returns the sine of X, where X is the angle in radians.
@SINH( X)
Returns the hyperbolic sine of X, where X is an angle in radians.
@SMAX( X1, X2,..., XN)
Returns the maximum value of X1, X2, ..., and XN.
@SMIN( X1, X2,..., XN)
Returns the minimum value of X1, X2, ..., and XN.
@SQR( X)
Returns the value of X squared.
@SQRT( X)
Returns the square root of X.
@TAN( X)
Returns the tangent of X, where X is the angle in radians.
@TANH( X)
Returns the hyperbolic tangent of X, where X is an angle in radians.
Download