Tandy 1000 Basic Reference Manual page 329

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter
10 I
BASIC Ke.ywords
TAN
Function
TAN( num ber)
Returns the tangent of
number.
Return the angle (in radians) whose arc tangent is
number.
Number
must be in radians. To obtain the tangent of
number
when it is in degrees, use TAN (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.
Example
prints -9.396959.
P R I N T T A N ( 7 . 9 6 )
Sample Program
This programs asks you to input an angle in degrees and re-
turns the tangent in radians.
7 2 0 I N P U T "ANGLE
I N DEGREES".
ANGLE
7 3 0 T
=
TANCCINGLE
*
. 0 1 7 4 5 3 2 4 )
7 4 0 P R I N T " T A N
I S " T
327

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents