Fafalone's Math Program Readme

Syntax: Syntax is very important. All functions require matching ( )s. Everything must be spelled right. Do not use words for numbers. Do not use roman numerals. Remember, .eval sqr() can not do negatives. For negatives use .sqr number.

Supported operators: My evaluation class supports the following operators and other symbols: ( ), +, -, *, /, and ^.

Functions Supported:

.eval supports the following functions:
ABS(dbl) Absolute Value
ATN(dbl) Arctangent
COS(dbl) Cosine
EXP(dbl) raises e to a power
FIX(dbl) Integer portion of a number
INT(dbl) Converts an expression to integer
LOG(dbl) Base-10 logarithm. Must be larger than 0.
LOG2(dbl) Base-2 logarithm. Must be larger than 0.
LN(dbl) Natural logarithm (Base-e)
RND(null) Random number between 0 and 1.
SGN(dbl) Returns the sign of a number. -1 if negative, 1 if positive, 0 if 0
SIN(dbl) Sine
SQR(dbl) Square root. Must be larger than 0. For negative numbers, see .sqr
TAN(dbl) Tangent
!(int) Factorial.
CUB(dbl) Cubic root of a number.
QRT(dbl) Quartic root of a number.
SEC(dbl) Secant
COSEC(dbl) Cosecant
COTAN(dbl) Cotangent
ARCSIN(dbl) Arcsine
ARCCOS(dbl) Arccosine
ARCSEC(dbl) Arcsecant
ARCCOSEC(dbl) Arccosecant
ARCCOTAN(dbl) Arccotangent
HSIN(dbl) Hyperbolic sine
HCOS(dbl) Hyperbolic cosine
HTAN(dbl) Hyperbolic tangent
HSEC(dbl) Hyperbolic secant
HCOSEC(dbl) Hyperbolic cosecant
HCOTAN(dbl) Hyperbolic cotangent
HARCSIN(dbl) Hyperbolic arcsine
HARCCOS(dbl) Hyperbolic arccosine
HARCTAN(dbl) Hyperbolic arctangent
HARCSEC(dbl) Hyperbolic arcsecant
HARCCOSEC(dbl) Hyperbolic arccosecant
HARCCOTAN(dbl) Hyperbolic arccotangent
ANS(int) Gets previous answer from history. Positive integer.
IPART(dbl) Integer part.
FPART(dbl) Fractional part.
SUM(expr,low,high) Sigma Summation. Must be used alone in a line.
PROD(expr,low,high) Sigma Product. Must be used alone in a line.

These functions are not used with .eval because they use variables.
.sqr double - square root of any number, -infinity to +infinity
.ls expr - linear solver for ax+b=c. must be in that form.
.qs expr - quadratic solver for ax^2+bx+c=0. handles real and imaginary roots
.pm expr - polynomial expansion. i.e. (4x^5+3x^3+1)(7x^3-5x+1)(2x+5)