Numeric Operations Index
Arithmetic reporters Number reporters
Random numbers Exponents and logarithms
Binary operations Polar coordinates
Base converters Trigonometric functions

 

Arithmetic reporters Top
.EQ (=) tests for equality
.GE (>=) tests for its first input being greater than or equal to its 2nd input
.GT (>) tests for its first input being greater than its 2nd input
.LE (<=) tests for its first input being less than or equal to its 2nd input
.LT (<) tests for its first input being less than its 2nd input
.NE (!= <>) tests for inequality
DIFFERENCE (-) outputs the difference of two or more numbers
PRODUCT (*) calculates the product of its inputs
QUOTIENT (/) reports the quotient of its inputs
REMAINDER outputs the remainder of two numbers
SUM (+) reports the sum of its inputs
Number reporters Top
:PRECISION sets the precision in which numbers are printed
ABS reports the absolute value of a number
INT reports the integer part of a number
PI reports the number Pi
ROUND rounds a number
SQRT reports the square root
Random numbers Top
RANDOM outputs a random number
RERANDOM seeds the randum number generator
Exponents and logarithms Top
EXPN calculates the natural base e raised to a power
LOG outputs the natural logarithm of its input
LOG10 outputs the logarithm of its input
POWER (^) raises a number to the power of another number
Binary operations Top
LOGAND combines its inputs with a boolean AND operation
LOGNOT inverts the bits of its input
LOGOR combines its inputs with a boolean OR operation
LOGXOR combines its inputs with a boolean XOR operation
LSH left-shifts its input
Polar coordinates Top
PANGLE reports the polar angle
PDIST calculates the polar distance
PHEADING reports the polar heading
PPOS reports the turtle's polar position
PSETHEADING sets the polar heading of a turtle
SETP sets the polar position of a turtle
Base Converters Top
#B binary numbers
#D decimal numbers
#H hexadecimal numbers
#O octal numbers
:BASE sets the numeric base used when printing numbers
Trigonometric functions Top
ARCCOS (ACOS) reports the arccosine
ARCCOT (ACOT) reports the arccotangent
ARCCSC (ACSC) reports the arccosecant
ARCSEC (ASEC) reports the arcsecant
ARCSIN (ASIN) reports the arcsine
ARCTAN (ATAN) reports the arctangent
COS reports the cosine
COT reports the cotangent
CSC reports the cosecant
SEC reports the secant
SIN reports the sine