162 lines
No EOL
3.5 KiB
Text
162 lines
No EOL
3.5 KiB
Text
! gasi stdlib
|
|
! math function definitions
|
|
! {0}, {1}, {2}, etc. indicate function arguments
|
|
! {r} indicates the return value
|
|
|
|
float abs float
|
|
Function.Instrinsic.Math.Abs({0}, {r})
|
|
***
|
|
float acos float
|
|
Function.Instrinsic.Math.Acos({0}, {r})
|
|
***
|
|
float acsc float
|
|
Function.Instrinsic.Math.ACoSec({0}, {r})
|
|
***
|
|
float acot float
|
|
Function.Intrinsic.Math.ACoTan({0}, {r})
|
|
***
|
|
float asec float
|
|
Function.Intrinsic.Math.Asec({0}, {r})
|
|
***
|
|
float asin float
|
|
Function.Intrinsic.Math.Asin({0}, {r})
|
|
***
|
|
float atan float
|
|
Function.Intrinsic.Math.Atan({0}, {r})
|
|
***
|
|
int upccheck string
|
|
Function.Intrinsic.Math.CalculateUPCcheckDigit({0}, {r})
|
|
***
|
|
float tofloat string
|
|
Function.Intrinsic.Math.ConvertToFloat({0}, {r})
|
|
***
|
|
int toint string
|
|
Function.Intrinsic.Math.ConvertToLong({0}, {r})
|
|
***
|
|
float cos float
|
|
Function.Intrinsic.Math.Cos({0}, {r})
|
|
***
|
|
float csc float
|
|
Function.Intrinsic.Math.CoSec({0}, {r})
|
|
***
|
|
float cot float
|
|
Function.Intrinsic.Math.CoTan({0}, {r})
|
|
***
|
|
string tofraction float
|
|
Function.Intrinsic.Math.DecimalToFraction({0}, {r})
|
|
***
|
|
string tofraction float float
|
|
Function.Intrinsic.Math.DecimalToFraction({0}, {1}, {r})
|
|
***
|
|
float degrees float
|
|
Function.Intrinsic.Math.DegToRad({0}, {r})
|
|
***
|
|
float radians float
|
|
Function.Intrinsic.Math.RadToDeg({0}, {r})
|
|
***
|
|
float exp float
|
|
Function.Intrinsic.Math.Exp({0}, {r})
|
|
***
|
|
int whole float
|
|
Function.Intrinsic.Math.Fix({0}, {r})
|
|
***
|
|
float acosh float
|
|
Function.Intrinsic.Math.HACos({0}, {r})
|
|
***
|
|
float acsch float
|
|
Function.Intrinsic.Math.HACoSec({0}, {r})
|
|
***
|
|
float acoth float
|
|
Function.Intrinsic.Math.HACoTan({0}, {r})
|
|
***
|
|
float asech float
|
|
Function.Intrinsic.Math.HASec({0}, {r})
|
|
***
|
|
float asinh float
|
|
Function.Intrinsic.Math.HASin({0}, {r})
|
|
***
|
|
float atanh float
|
|
Function.Intrinsic.Math.HATan({0}, {r})
|
|
***
|
|
float cosh float
|
|
Function.Intrinsic.Math.Hcos({0}, {r})
|
|
***
|
|
float csch float
|
|
Function.Intrinsic.Math.HCoSec({0}, {r})
|
|
***
|
|
float coth float
|
|
Function.Intrinsic.Math.HCoTan({0}, {r})
|
|
***
|
|
float sech float
|
|
Function.Intrinsic.Math.Hsec({0}, {r})
|
|
***
|
|
float sinh float
|
|
Function.Intrinsic.Math.Hsin({0}, {r})
|
|
***
|
|
float tanh float
|
|
Function.Intrinsic.Math.HTan({0}, {r})
|
|
***
|
|
int idiv float float
|
|
Function.Intrinsic.Math.Idiv({0}, {1}, {r})
|
|
***
|
|
float inv float
|
|
Function.Intrinsic.Math.Inv({0}, {r})
|
|
***
|
|
bool inrange float float float
|
|
Function.Intrinsic.Math.IsInRange({0}, {1}, {2}, {r})
|
|
***
|
|
bool isnum string
|
|
Function.Intrinsic.Math.IsNumeric({0}, {r})
|
|
***
|
|
float log float
|
|
Function.Intrinsic.Math.Log({0}, {r})
|
|
***
|
|
float logn float int
|
|
Function.Intrinsic.Math.LogN({0}, {1}, {r})
|
|
***
|
|
float polarx float float
|
|
Function.Intrinsic.Math.PolarToX({0}, {1}, {r})
|
|
***
|
|
float polary float float
|
|
Function.Intrinsic.Math.PolarToY({0}, {1}, {r})
|
|
***
|
|
float lendiag float float
|
|
Function.Intrinsic.Math.RectToRad({0}, {1}, {r})
|
|
***
|
|
float angdiag float float
|
|
Function.Intrinsic.Math.RectToTheta({0}, {1}, {r})
|
|
***
|
|
float rand
|
|
Function.Intrinsic.Math.Rnd({r})
|
|
***
|
|
float rand float
|
|
Function.Intrinsic.Math.Rnd({0}, {r})
|
|
***
|
|
float rand float float
|
|
Function.Intrinsic.Math.Rnd({0}, {1}, {r})
|
|
***
|
|
float round float float
|
|
Function.Intrinsic.Math.Round({0}, {1}, 0, {r})
|
|
***
|
|
float huround float float
|
|
Function.Intrinsic.Math.Round({0}, {1}, 1, {r})
|
|
***
|
|
float sec float
|
|
Function.Intrinsic.Math.Sec({0}, {r})
|
|
***
|
|
int sign float
|
|
Function.Intrinsic.Math.Sgn({0}, {r})
|
|
***
|
|
float sin float
|
|
Function.Intrinsic.Math.Sin({0}, {r})
|
|
***
|
|
float sqrt float
|
|
Function.Intrinsic.Math.Sqr({0}, {r})
|
|
***
|
|
float tan float
|
|
Function.Intrinsic.Math.Tan({0}, {r})
|
|
***
|
|
float pow float float
|
|
Function.Intrinsic.Math.XToY({0}, {1}, {r})
|
|
|
|
! TODO: add Function.Intrinsic.Math.UnitConversion aliases |