Log ( Returns A Natural Logarithm Value ) - Mitsubishi QD51 Programming Manual

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
LOG
Function
• Returns a natural logarithm value.
LOG ( <numeric expression> )
Syntax
numeric expression
A=LOG(10)
Examples
• The LOG function obtains the natural logarithm of the value specified by a numeric
Description
expression.
• The computation is performed in single-precision.
• To determine a common logarithm log10X with 10 as the base, define by using log10X =
logeX/loge10.
Program Example
10 ' Obtains LOGe 100
20 A=100
30 B=LOG(A)
40 PRINT "LOGe 100 =";B
50 END
RUN
LOGe 100 = 4.60517
OK
11 - 136
LOGarithm
• • • •
• • • •
REMARK
See the EXP function.
Specify the value of which natural logarithm is
obtained.
Stores the natural logarithm of 10 to A.
:
' Obtains LOGe 100
MELSEC-Q
11 - 136

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents