Compatible with:

DOS Maximite CMM MM150 MM170 MM+ MMX Picromite ArmiteL4
Armite F4 ArmiteH7 CMM2

Syntax:

**MATH(xxx)**

Description:

The math function performs many simple mathematical calculations that can be
programmed in Basic but there are speed advantages to coding looping structures
in C and there is the advantage that once debugged they are there for everyone
without re-inventing the wheel.

Also see the MATH command and MATH FFT command

**Simple functions**

**MATH(ATAN3 x,y)
**Returns ATAN3 of x and y

**MATH(COSH a)
**Returns the hyperbolic cosine of a

**MATH(LOG10 a)
**Returns the base 10 logarithm of a

**MATH(SINH a)
**Returns the hyperbolic sine of a

**MATH(TANH a)
**Returns the hyperbolic tan of a

**Simple Statistics**

**MATH(CHI a())
**Returns the Pearson's chi-squared value of the two dimensional array a())

**MATH(CHI_p a())
**Returns the associated probability in % of the Pearson's chi-squared value
of the two dimensional array a())

**MATH(MAX a())
**Returns the maximum of all values in the a() array, a() can have any number
of dimensions

**MATH(MEAN a())
**Returns the average of all values in the a() array, a() can have any number
of dimensions

**MATH(MEDIAN a())
**Returns the median of all values in the a() array, a() can have any number
of dimensions

**MATH(MIN a())
**Returns the minimum of all values in the a() array, a() can have any number
of dimensions

**MATH(SD a())
**Returns the standard deviation of all values in the a() array, a() can have
any number of dimensions

**MATH(SUM a())
**Returns the sum of all values in the a() array, a() can have any number of
dimensions

**Vector Arithmetic**

**MATH(MAGNITUDE v())
**Returns the magnitude of the vector v(). The vector can have any number of
elements

**MATH(DOTPRODUCT v1(), v2())
**Returns the dot product of two vectors v1() and v2(). The vectors can have
any number of elements but must have the same cardinality

Last edited: 25 February, 2021