SIN
Return sine of argument X
SIN(X)
This is the trigonometric sine function. The result is the sine of X.
X is measured in radians.
EXAMPLE:
PRINT SIN (77-/3 )
.866025404
SPC
Skip spaces on the screen
SPC (X)
This function is used in PRINT or PRINT# commands to control
the formatting of data, as either output to the screen or output to
a logical file. The number of SPaCes specified by X determines
the number of characters to fill with spaces across the screen or
in a file. For screen or tape files, the value of the argument is in
the range 0 to 255 and for disk files the maximum is 254. For
printer files, an automatic carriage-return and line-feed will be
performed by the printer if a SPaCe is printed in the last character
position of a line. No SPaCes are printed on the following line.
EXAMPLE:
PRINT “COMMODORE”;SPC(3);“128”
COMMODORE 128
SQR
Return square root of argument
SQR (X)
This function returns the value of the SQuare Root of X, where X
is a positive number or 0. The value of the argument must not be
negative, or the BASIC error message 7ILLEGAL QUANTITY is
displayed.
18-19