Download Print this page

VTech PreComputer 2000 Manual page 37

Advertisement

A LIST OF NUMERIC FUNCTIONS
Function
ABS (X)
Returns the absolute (positive)Value of X
SGN (X)
Returns the sign of the argument
X negative returns - 1
X positive returns + 1
X zero returns 0
SQR (X)
Returns the square root of X. X cannot be
negative.
LOG (X)
Gives the natural logarithm of X, i.e.
,
the logarithm to
the base e (=2 .71828)
.
The value of the argument must
be greater than zero.
EXP (X)
Gives you the value e - i.e., the natural antilogarithm
of
X.
INT (X)
Gives the greatest integer which is less than or equal
to
X.
RND (X)
Gives a random whole number between 1 and X. If
X equals zero, RND (X) returns a random number
between O and 1. X cannot be negative.
SIN (X)
The argument of the trigonometrical functions is taken
COS (X)
to be in radians (1 radian=360/21t = 57.296 degrees)
.
TAN (X)
The range of X is -999
< (X) <
999.
ATN (X)
This gives the result of ARC TANGENT in
radians.
ARITHMETIC FUNCTIONS
ABS (X)
This gives the absolute (positive) value of the argument. So ABS (-7) =
7.
Example:
PRINT ABS
(7-2*
4)
press
ENTER
36

Advertisement

loading
Need help?

Need help?

Do you have a question about the PreComputer 2000 and is the answer not in the manual?

Subscribe to Our Youtube Channel