Chapter 4. Ladder Diagram (LD) Programming62 PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual GFK-2950C4.1 Advanced Math FunctionsThe Advanced Math functions perform logarithmic, exponential, square root, trigonometric, andinverse trigonometric operations.Function Mnemonic DescriptionExponential EXP_REALEXP_LREALRaises e to the value specified in IN (eIN). Calculates the inverse naturallogarithm of the IN operand.EXPT_REALEXPT_LREALCalculates IN1 to the IN2 power (IN1IN2).Inverse Trig ACOS_REALACOS_LREALCalculates the inverse cosine of the IN operand and expresses the result inradians.ASIN_REALASIN_LREALCalculates the inverse sine of the IN operand and expresses the result inradians.ATAN_REALATAN_LREALCalculates the inverse tangent of the IN operand and expresses the result inradians.Logarithmic LN_REALLN_LREALCalculates the natural logarithm of the operand IN.LOG_REALLOG_LREALCalculates the base 10 logarithm of the operand IN.Square Root SQRT_DINT Calculates the square root of the operand IN, a double-precision integer, andstores in Q the double-precision integer portion of the square root of theinput IN.SQRT_INT Calculates the square root of the operand IN, a single-precision integer, andstores in Q the single-precision integer portion of the square root of the inputIN.SQRT_REAL Calculates the square root of the operand IN, a real number, and stores thereal-number result in QSQRT_LREALTrig COS_REALCOS_LREALCalculates the cosine of the operand IN, where IN is expressed in radians.SIN_REALSIN_LREALCalculates the sine of the operand IN, where IN is expressed in radians.TAN_REALTAN_LREALCalculates the tangent of the operand IN, where IN is expressed in radians.