FunctionsµStrata MathDaemon™ Computation LibraryMathDaemon Class Library

List of built-in functions supported by the library

Algebraic Functions
NameParametersDescriptionExample
ABS1Returns the absolute valueABS(-15.03) = 15.03
EXP1"e" raised to the specified powerEXP(2.1) = 8.16616991256765
POWER2a specified number raised to the specified powerPOWER(2,3) = 8
FACTORIAL1The factorialFACTORIAL(3) = 6
INVSIGN1a specified number with inverted signINVSIGN(4.02) = -4.02
LN1The natural (base "e") logarithm of a specified numberLN(3) = 1.09861228866811
LOG2The logarithm of a specified number in a specified baseLOG(81,3) = 4
LOG101The base 10 logarithm of a specified numberLOG10(100) = 2
LOG21The base 2 logarithm of a specified numberLOG2(8) = 3
SIGN1a value indicating the sign of a specified number, 1 for positive, -1 for negative, 0 for 0SIGN(-12.1) = -1
SQRT1the square root of a specified numberSQRT(4) = 2
STEP10 for negative numbers and 1 for 0 or positive numbersSTEP(13.12) = 1
Statistic Functions
NameParametersDescriptionExample
MAXanythe larger of specified number collectionMAX(2,5,3-4) = 5
MINanythe smaller of specified number collectionMIN(7,-2.4,0,14) = -2.4
AVGanythe average of specified number collectionAVG(2,3) = 2.5
NAPOLEONMAXanythe average of first N numbers from specified number collection ordered descending, the first number in collection is N and ignoredNAPOLEONMAX(2,1,3,2,4,5) = 4.5
NAPOLEONMINanythe average of first N numbers from specified number collection ordered ascending, the first number in collection is N and ignoredNAPOLEONMIN(2,1,3,2,4,5) = 1.5
Trigonometric Functions
NameParametersDescriptionExample
ARCCOS1the angle (Radian/Gradian/Degree) whose cosine is the specified numberARCCOS(1) = 0
ARCCOSH1the angle (Radian/Gradian/Degree) whose hyperbolic cosine is the specified numberARCCOSH(e) = 1.65745445415
ARCSIN1the angle (Radian/Gradian/Degree) whose sine is the specified numberARCSIN(0.5) = 0.523598775598
ARCSINH1the angle (Radian/Gradian/Degree) whose hyperbolic sine is the specified numberARCSINH(1) = 0.8.137358701954
ARCTAN1the angle (Radian/Gradian/Degree) whose tangent is the specified numberARCTAN(1) = 0.78539816339745
ARCTANH1the angle (Radian/Gradian/Degree) whose hyperbolic tangent is the specified numberARCTANH(0.5) = 0.549306144334
COS1the cosine of the specified angle (Radian/Gradian/Degree)COS(0) = 1
COSH1the hyperbolic cosine of the specified angle (Radian/Gradian/Degree)COSH(1) = 1.5430806348152438
CTAN1the cotangent of the specified angle (Radian/Gradian/Degree)CTAN(1) = 0.642092615934
SIN1the sine of the specified angle (Radian/Gradian/Degree)SIN(0) = 0
SINH1the hyperbolic sine of the specified angle (Radian/Gradian/Degree)SINH(1) = 0.11752011936438
TANH1the hyperbolic tangent of the specified angle (Radian/Gradian/Degree)TANH(1) = 0.076159415595576
TAN1the tangent of the specified angle (Radian/Gradian/Degree)TAN(1) = 0.15574077246549
Logic Functions
NameParametersDescriptionExample
BOOL31, if comparison between second and third parameters according to compare type (first) is true, otherwise 0BOOL(Greater,3,2) = 1
Random Functions
NameParametersDescriptionExample
RANDOM2a random number between passed values, lower bond inclusive, upper bond exclusiveRANDOM(3,7) = 4.1345734
See Also

Other Resources