SmallBASIC GuideThe language | Programming Tips | Commands | System | Graphics & Sound | Miscellaneous | File system | Mathematics | 2D Algebra | Strings | Console | Glossary |
All angles are in radians.
Function:
ABS
(x)
Returns the absolute value of x.
Function:
MAX
(...)
Function:
ABSMAX
(...)
Function:
MIN
(...)
Function:
ABSMIN
(...)
Maximum/Minimum value of parameters. Parameters can be anything
(arrays, ints, reals, strings).
ABSMIN/ABSMAX returns the absolute min/max value.
? MAX(3,4,8)
? MIN(array(),2,3)
? MAX("abc","def")
Function:
SEQ
(xmin, xmax, count)
Returns an array with 'count' elements.
Each element had the x value of its position.
? SEQ(0,1,11)
Command:
EXPRSEQ
BYREF array, xmin, xmax, count USE expression
Returns an array with 'count' elements.
Each element had the 'y' value of its position as it is
returned by the expression.
REM same as v=SEQ(0,1,11)
EXPRSEQ v, 0, 1, 11 USE x
Function:
POW
(x, y)
x raised to power of y
Function:
SQR
(x)
Square root of x
Function:
SGN
(x)
Sign of x (+1 for positive, -1 for negative and 0 for zero)
Unit conversion
Round
Trigonometry
Logarithms
Statistics
Equations