Vtech PreComputer Power Pad Plus User Manual - Page 55

Y=9 : X=sqry : Print X

Page 55 highlights

Type PRINT SQR (9). (press ENTER) The answer is 3. Example: Y=9 : X=SQR(Y) : PRINT X press ENTER The answer is 3. In these two examples, 9 is the argument, SQR is the function and 3 is the result. A LIST OF NUMERIC FUNCTIONS Function ABS (X) SGN (X) SQR (X) LOG (X) EXP (X) INT (X) RND (X) SIN (X) COS (X) TAN (X) ATN (X) What it does Returns the absolute (positive) Value of X Returns the sign of the argument X negative returns - 1 X positive returns + 1 X zero returns 0 Returns the square root of X. X cannot be negative. 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. Gives you the value ex, i.e., the natural antilogarithm of X. Gives the greatest integer which is less than or equal to 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. The argument of the trigonometrical functions is taken to be in radians (1 radian=360/2π = 57.296 degrees). The range of X is -999 < (X) < 999. This gives the result of ARC TANGENT in radians. 51

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88

51
Type
PRINT
SQR
(9).
(press
ENTER
)
The answer is 3.
Example:
Y=9 : X=SQR(Y) : PRINT X
press
ENTER
The answer is 3.
In these two examples, 9 is the argument, SQR is the function and 3 is the result.
A LIST OF NUMERIC FUNCTIONS
Function
What it does
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
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 trigonometrical functions
COS
(X)
is taken to be in radians (1 radian=360/2
π
= 57.296 degrees).
TAN
(X)
The range of X is -999 < (X) < 999.
ATN
(X)
This gives the result of ARC TANGENT in radians.