as: TIC54X-Builtins

1 
1 9.45.7 Math Builtins
1 --------------------
1 
1 The following built-in functions may be used to generate a
1 floating-point value.  All return a floating-point value except '$cvi',
1 '$int', and '$sgn', which return an integer value.
1 
1 '$acos(EXPR)'
1      Returns the floating point arccosine of EXPR.
1 
1 '$asin(EXPR)'
1      Returns the floating point arcsine of EXPR.
1 
1 '$atan(EXPR)'
1      Returns the floating point arctangent of EXPR.
1 
1 '$atan2(EXPR1,EXPR2)'
1      Returns the floating point arctangent of EXPR1 / EXPR2.
1 
1 '$ceil(EXPR)'
1      Returns the smallest integer not less than EXPR as floating point.
1 
1 '$cosh(EXPR)'
1      Returns the floating point hyperbolic cosine of EXPR.
1 
1 '$cos(EXPR)'
1      Returns the floating point cosine of EXPR.
1 
1 '$cvf(EXPR)'
1      Returns the integer value EXPR converted to floating-point.
1 
1 '$cvi(EXPR)'
1      Returns the floating point value EXPR converted to integer.
1 
1 '$exp(EXPR)'
1      Returns the floating point value e ^ EXPR.
1 
1 '$fabs(EXPR)'
1      Returns the floating point absolute value of EXPR.
1 
1 '$floor(EXPR)'
1      Returns the largest integer that is not greater than EXPR as
1      floating point.
1 
1 '$fmod(EXPR1,EXPR2)'
1      Returns the floating point remainder of EXPR1 / EXPR2.
1 
1 '$int(EXPR)'
1      Returns 1 if EXPR evaluates to an integer, zero otherwise.
1 
1 '$ldexp(EXPR1,EXPR2)'
1      Returns the floating point value EXPR1 * 2 ^ EXPR2.
1 
1 '$log10(EXPR)'
1      Returns the base 10 logarithm of EXPR.
1 
1 '$log(EXPR)'
1      Returns the natural logarithm of EXPR.
1 
1 '$max(EXPR1,EXPR2)'
1      Returns the floating point maximum of EXPR1 and EXPR2.
1 
1 '$min(EXPR1,EXPR2)'
1      Returns the floating point minimum of EXPR1 and EXPR2.
1 
1 '$pow(EXPR1,EXPR2)'
1      Returns the floating point value EXPR1 ^ EXPR2.
1 
1 '$round(EXPR)'
1      Returns the nearest integer to EXPR as a floating point number.
1 
1 '$sgn(EXPR)'
1      Returns -1, 0, or 1 based on the sign of EXPR.
1 
1 '$sin(EXPR)'
1      Returns the floating point sine of EXPR.
1 
1 '$sinh(EXPR)'
1      Returns the floating point hyperbolic sine of EXPR.
1 
1 '$sqrt(EXPR)'
1      Returns the floating point square root of EXPR.
1 
1 '$tan(EXPR)'
1      Returns the floating point tangent of EXPR.
1 
1 '$tanh(EXPR)'
1      Returns the floating point hyperbolic tangent of EXPR.
1 
1 '$trunc(EXPR)'
1      Returns the integer value of EXPR truncated towards zero as
1      floating point.
1