EasyManua.ls Logo

VTech PreComputer Prestige - Page 56

VTech PreComputer Prestige
93 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
54
A LIST OF NUMERIC FUNCTIONS
Function What it does
ABS (X) Returns the absolute (postive) value of X
SGN (X) Returns the sign of the argument
X negative returns -1
X postive 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
x
- 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 0 and 1. X cannot be
negative.
SIN (X) The argument of the trigonometry functions is taken to be in radians
COS (X) (1 radian=360/2π = 57.296 degrees). The range of X is -999 < (X)
TAN (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
1

Related product manuals