11 - 66 11 - 66
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
EXP
Function
EXPonential
• Returns the exponential function value of base e (e=2.718281).
EXP ( <numeric expression> )
Syntax
numeric expression
• • • •
Specify the multiplicator n of e
n
.
Examples
E=EXP(10)
• • • •
Calculates EXP(10) and stores it in E.
Description
• The EXP function returns the exponential function value of base e.
• Specify 87.33655 or smaller to <numeric expression>. An “Overflow” error occurs if it
exceeds this value.
• The EXP function calculates in single precision.
Program Example
10 ' Calculates the value of e^5.2
20 A=5.2
30 B=EXP(A)
:
'Calculates e^5.2
50 PRINT "e^5.2=";B
60 END
RUN
e^5.2= 181.272
OK
REMARK
See the LOG function.