Mitsubishi MELFA CR1D Instruction Manual page 323

Table of Contents

Advertisement

Asc
[Function]
Returns the character code of the first character in the string.
[Format]
<Numeric Variable>=Asc(<Character String Expression>)
[Reference Program]
1 M1=Asc("A")
[Explanation]
(1) Returns the character code of the first character in the string.
(2) An error will be generated if the string is a null string.
[Reference]
Chr$, Val, Cvi, Cvs,
Atn/Atn2
[Function]
Calculates the arc tangent.
[Format]
<Numeric Variable>=Atn(<Equation>)
<Numeric Variable>=Atn2(<Equation 1>, <Equation 2>)
[Terminology]
<Numeric Variable>
<Equation>
<Equation 1>
<Equation 2>
[Reference Program]
1 M1=Atn(100/100)
2 M2=Atn2(-100,100)
[Explanation]
(1) Calculates the arc tangent of a given equation. Unit is in radians.
(2) The range of the returned value for Atn is -PI/2 < Atn < PI/2.
(3) The range of the returned value for Atn2 is -PI < Atn < PI.
(4) If <Equation 2> evaluates to 0, Atn2 will return PI/2 when <Equation 1> evaluates to a positive value and
-PI/2 when <Equation 1> evaluates to a negative value.
(5) In the case of Atn2, it is not possible to describe a function that contains an argument in <Equation 1>
and <Equation 2>. If such a function is described, an error will be generated during execution.
NG exampleM1=Atn2(Max(MA,MB), 100)
M1=Atn2(Cint(10.2), 100)
[Reference]
Sin, Cos,
Tan
' &H41is assigned to M1.
Cvd
Calculates the arc tangent with specified expression, and returns the result. The unit is radian.
Calculated value of delta Y/delta X.
delta Y
delta X
'PI/4 is assigned to M1.
'-PI/4 is assigned to M1.
4MELFA-BASIC IV
Detailed Explanation of Functions 4-310

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melfa cr2dMelfa cr3d

Table of Contents