Skip to content
Tristan Hume edited this page Apr 23, 2012 · 2 revisions

#Math

##Description This unit contains all the mathematical routines. There are three routines that are part of the language, but are conceptually part of the Math unit.

All routines in the Math unit except Math.Distance and Math.DistancePointLine are exported unqualified. (This means you can call the entry points directly.)Math.Distance and Math.DistancePointLine are exported qualified. All constants in the Math unit are exported qualified. (Both Math.PI and Math.E must be prefaced with "Math.".)

Descriptions of all the subprograms in the Math module can be found in this chapter.

##Constants

Math.PI The constant p (3.14...). Math.E The natural base e (2.718...).

##Entry Points

abs.html* The absolute value function. arccos.html The arccos function (radians). arccosd.html The arccos function (degrees). arcsin.html The arcsin function (radians). arcsind.html The arcsin function (degrees). arctan.html The arctan function (radians). arctand.html The arctan function (degrees). cos.html The cosine function (radians). cosd.html The cosine function (degrees). exp.html The exponentiation function. ln.html The natural logarithm function. max.html* The maximum value function. min.html* The minimum value function. sign.html The sign function. sin.html The sine function (radians). sind.html The sine function (degrees). tan.html The tangent function (radians). tand.html The tangent function (degrees). sqrt.html The square root function. math_distance.html The distance between two points. math_distancepointline.html The distance between a point and a line segment.

  • Part of the language, conceptually part of the Math unit.
Clone this wiki locally