Chapter 10
I
BASIC Ke.ywords
SIN
Function
SIN(number)
Returns the sine of number
SIN returns the angle (in radians) whose cosine is number.
Number must be in radians. To obtain the sine of number when
number is in degrees, use SIN(number
*
PI/180), where PI
equals 3.141593.
BASIC always returns the result as a single precision number
unless you set the
/D
switch when starting up BASIC.
Examples
P R I N T S I N C 7 . 9 6 )
prints .9943854.
Sample Program
6 6 0 I N P U T "FINGLE
I N DEGREES";
A
6 7 0 P R I N T " S I N E
IS";
S I N < A
.01745329)
308