Record File Functions; Trigonometric Functions - IBM 5110 Basic Introduction

Table of Contents

Advertisement

116
RECORD FILE FUNCTIONS
BASIC provides three functions that allow you to inquire about
record-oriented file status where
C='FLO-FL9'.
These functions are:
KLN(C)
Gives the length (in bytes) of the key field in file C.
KPS(C)
Gives the beginning position of the key field in file C.
RLN(C)
Gives the last record length for file C.
TRIGONOMETRIC FUNCTIONS
BASIC has functions that automatically perform trigonometric
operations for you. Just substitute your own variable or expression
where the variable X appears in the following list:
SIN
(X)
Gives the sine of X radians.
COS
(X)
Gives the cosine of X radians.
TAN(X)
Gives the tangent of X radians.
COT(X)
Gives the cotangent of X radians.
SEC(X)
Gives the secant of X radians.
CSC(X)
Gives the cosecant of X radians.
ASN(X)
Gives the arc sine (in radians) of X.
ACS(X)
Gives the arc cosine (in radians) of X.
ATN(X)
Gives the arc tangent (in radians) of X.
HCS(X)
Gives the hyperbolic cosine of the real number X.
HSN(X)
Gives the hyperbolic sine of the real number X.
HTN(X)
Gives the hyperbolic tangent of the real number X.
o
f ( - '
\\,""j
.(
,
116
RECORD FILE FUNCTIONS
BASIC provides three functions that allow you to inquire about
record-oriented file status where
C='FLO-FL9'.
These functions are:
KLN(C)
Gives the length (in bytes) of the key field in file C.
KPS(C)
Gives the beginning position of the key field in file C.
RLN(C)
Gives the last record length for file C.
TRIGONOMETRIC FUNCTIONS
BASIC has functions that automatically perform trigonometric
operations for you. Just substitute your own variable or expression
where the variable X appears in the following list:
SIN
(X)
Gives the sine of X radians.
COS
(X)
Gives the cosine of X radians.
TAN(X)
Gives the tangent of X radians.
COT(X)
Gives the cotangent of X radians.
SEC(X)
Gives the secant of X radians.
CSC(X)
Gives the cosecant of X radians.
ASN(X)
Gives the arc sine (in radians) of X.
ACS(X)
Gives the arc cosine (in radians) of X.
ATN(X)
Gives the arc tangent (in radians) of X.
HCS(X)
Gives the hyperbolic cosine of the real number X.
HSN(X)
Gives the hyperbolic sine of the real number X.
HTN(X)
Gives the hyperbolic tangent of the real number X.
o
f ( - '
\\,""j
.(
,

Advertisement

Table of Contents
loading

Table of Contents