
Chapter 15 Functions
15-17
SIN (Function) [Conforms to SLIM]
Function
Obtains a sine.
Format
SIN (<Expression>)
Explanation
Obtains the sine value of the value in <Expression>.
Designate the unit of <Expression> in degrees.
If <Expression> includes a double precision real numeral, the obtained value
becomes double precision. Otherwise, a single precision value is obtained.
If an argument is entered in radians, add RAD after the constant.
Explanation: The SIN function receives an angle as an argument and
the ratio of the 2 sides of a right triangle including the
right angle. The 2 sides mentioned here are the
opposite side to the designated angle and the
hypotenuse side. The ratio of the 2 sides is the value of
the opposite side length divided by the hypotenuse side
length. The return value ranges from -1 to 1. To convert
degrees to radians, multiply the degrees by π
ππ
π/180. To
convert radians to degrees, multiply the radians by
180/π
ππ
π.
Related Terms
COS, TAN, ASIN, ACOS, ATN, ATN2
Example
DEFSNG lf1, lf2, lf3, lf4, lf5
lf1 = SIN(0.78525) 'Assigns the sine value of 0.78525 to lf1.
lf2 = SIN(lf4) 'Assigns the sine value of lf4 to lf2.
lf3 = SIN(45) * lf5 'Assigns the sine value of 45 degrees multiplied by
'lf5 to lf3.
Commentaires sur ces manuels