Object Class Math Functions (FSCEXPEXT@1.1001:MathFunctions)

Object Class Hierarchy

COOSYSTEM@1.1:Object > COOSYSTEM@1.1:ComponentObject > FSCEXPEXT@1.1001:MathFunctions

Math Functions.

Note that the trigonometric functions (sin(), cos(), tan(), asin(), acos(), atan(), atan2()) expect or return angles in radians. To convert radians to degrees, divide by (Math.PI / 180), and multiply by this to convert the other way.

Note that many math functions have a precision that's implementation-dependent. This means that a different OS or architecture can give different results.

Additional Information

Default Background Menu: COODESK@1.1:MenuRootWinContext
Compound: false
Action for Moving Objects: COODESK@1.1:DragIntoMove
Abstract: true
Programmatic Use: true
ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Symbol: COODESK@1.1:SymbolComponentObject
Base Class: COOSYSTEM@1.1:ComponentObject
Action for Linking Objects: COODESK@1.1:DragIntoLink
Default Main Menu: COODESK@1.1:MenuRootFolder
Action for Copying Objects: COODESK@1.1:DragIntoCopy
Display Mode: DISP_LINES

Properties

ReferenceName
FSCEXPEXT@1.1001:EE
FSCEXPEXT@1.1001:LN10LN10
FSCEXPEXT@1.1001:LN2LN2
FSCEXPEXT@1.1001:LOG10ELOG10E
FSCEXPEXT@1.1001:LOG2ELOG2E
FSCEXPEXT@1.1001:PIPI
FSCEXPEXT@1.1001:SQRT1_2SQRT 1/2
FSCEXPEXT@1.1001:SQRT2SQRT 2

Actions

ReferenceName
FSCEXPEXT@1.1001:abs
FSCEXPEXT@1.1001:acos
FSCEXPEXT@1.1001:acosh
FSCEXPEXT@1.1001:asin
FSCEXPEXT@1.1001:asinh
FSCEXPEXT@1.1001:atan
FSCEXPEXT@1.1001:atan2
FSCEXPEXT@1.1001:atanh
FSCEXPEXT@1.1001:cbrt
FSCEXPEXT@1.1001:ceil
FSCEXPEXT@1.1001:clz32
FSCEXPEXT@1.1001:cos
FSCEXPEXT@1.1001:cosh
FSCEXPEXT@1.1001:exp
FSCEXPEXT@1.1001:expm1
FSCEXPEXT@1.1001:floor
FSCEXPEXT@1.1001:fround
FSCEXPEXT@1.1001:hypot
FSCEXPEXT@1.1001:imul
FSCEXPEXT@1.1001:log
FSCEXPEXT@1.1001:log10
FSCEXPEXT@1.1001:log1p
FSCEXPEXT@1.1001:log2
FSCEXPEXT@1.1001:pow
FSCEXPEXT@1.1001:random
FSCEXPEXT@1.1001:round
FSCEXPEXT@1.1001:sign
FSCEXPEXT@1.1001:sin
FSCEXPEXT@1.1001:sinh
FSCEXPEXT@1.1001:sqrt
FSCEXPEXT@1.1001:tan
FSCEXPEXT@1.1001:tanh
FSCEXPEXT@1.1001:trunc

Properties

FSCEXPEXT@1.1001:E (E)

Euler's constant and the base of natural logarithms, approximately 2.718.

Additional Information

Length After Point: 16
Changeable in Installed Component: true
ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Type: COOSYSTEM@1.1:FLOAT
Length Before Point: 1
Changeable: true
Must Be Defined: false
Sign: true
Visible: true


[top]

FSCEXPEXT@1.1001:LN10 (LN10)

Natural logarithm of 10, approximately 2.303.

Additional Information

Length After Point: 16
Changeable in Installed Component: true
ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Type: COOSYSTEM@1.1:FLOAT
Length Before Point: 1
Changeable: true
Must Be Defined: false
Sign: true
Visible: true


[top]

FSCEXPEXT@1.1001:LN2 (LN2)

Natural logarithm of 2, approximately 0.693.

Additional Information

Length After Point: 16
Changeable in Installed Component: true
ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Type: COOSYSTEM@1.1:FLOAT
Length Before Point: 1
Changeable: true
Must Be Defined: false
Sign: true
Visible: true


[top]

FSCEXPEXT@1.1001:LOG10E (LOG10E)

Base 10 logarithm of E, approximately 0.434.

Additional Information

Length After Point: 16
Changeable in Installed Component: true
ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Type: COOSYSTEM@1.1:FLOAT
Length Before Point: 1
Changeable: true
Must Be Defined: false
Sign: true
Visible: true


[top]

FSCEXPEXT@1.1001:LOG2E (LOG2E)

Base 2 logarithm of E, approximately 1.443.

Additional Information

Length After Point: 16
Changeable in Installed Component: true
ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Type: COOSYSTEM@1.1:FLOAT
Length Before Point: 1
Changeable: true
Must Be Defined: false
Sign: true
Visible: true


[top]

FSCEXPEXT@1.1001:PI (PI)

Ratio of the circumference of a circle to its diameter, approximately 3.14159.

Additional Information

Length After Point: 16
Changeable in Installed Component: true
ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Type: COOSYSTEM@1.1:FLOAT
Length Before Point: 1
Changeable: true
Must Be Defined: false
Sign: true
Visible: true


[top]

FSCEXPEXT@1.1001:SQRT1_2 (SQRT 1/2)

Square root of 1/2; equivalently, 1 over the square root of 2, approximately 0.707.

Additional Information

Length After Point: 16
Changeable in Installed Component: true
ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Type: COOSYSTEM@1.1:FLOAT
Length Before Point: 1
Changeable: true
Must Be Defined: false
Sign: true
Visible: true


[top]

FSCEXPEXT@1.1001:SQRT2 (SQRT 2)

Square root of 2, approximately 1.414.

Additional Information

Length After Point: 16
Changeable in Installed Component: true
ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Type: COOSYSTEM@1.1:FLOAT
Length Before Point: 1
Changeable: true
Must Be Defined: false
Sign: true
Visible: true


[top]

Actions

FSCEXPEXT@1.1001:abs

Returns the absolute value of a number.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:acos

Returns the arccosine of a number.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:acosh

Returns the hyperbolic arccosine of a number.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:asin

Returns the arcsine of a number.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:asinh

Returns the hyperbolic arcsine of a number.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:atan

Returns the arctangent of a number.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:atan2

Returns the arctangent of the quotient of its arguments.
ParameterTypeIn/OutOptionalDescription
yCOOSYSTEM@1.1:FLOATin
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:atanh

Returns the hyperbolic arctangent of a number.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:cbrt

Returns the cube root of a number.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:ceil

Returns the smallest integer greater than or equal to a number.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:clz32

Returns the number of leading zeroes of a 32-bit integer.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:cos

Returns the cosine of a number.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:cosh

Returns the hyperbolic cosine of a number.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:exp

Returns E^x, where x is the argument, and E is Euler's constant (2.718...), the base of the natural logarithm.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:expm1

Returns subtracting 1 from exp(x).
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:floor

Returns the largest integer less than or equal to a number.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:fround

Returns the nearest single precision float representation of a number.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:hypot

Returns the square root of the sum of squares of its arguments.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
yCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:imul

Returns the result of a 32-bit integer multiplication.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
yCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:log

Returns the natural logarithm (loge, also ln) of a number.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:log10

Returns the base 10 logarithm of a number.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:log1p

Returns the natural logarithm (loge, also ln) of 1 + x for a number x.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:log2

Returns the base 2 logarithm of a number.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:pow

Returns base to the exponent power, that is, baseexponent.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
yCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:random

Returns a pseudo-random number between 0 and 1. See FSCEXPEXT@1.1001:InitializeRandom.
ParameterTypeIn/OutOptionalDescription
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:round

Returns the value of a number rounded to the nearest integer.
Note: this function rounds to the next integer away from zero (differs from ECMAScript).
Eg. round(3.5) == 4
Eg. round(-3.5) == -4
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:sign

Returns the sign of the x, indicating whether x is positive, negative or zero.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:sin

Returns the sine of a number.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:sinh

Returns the hyperbolic sine of a number.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:sqrt

Returns the positive square root of a number.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:tan

Returns the tangent of a number.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:tanh

Returns the hyperbolic tangent of a number.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]

FSCEXPEXT@1.1001:trunc

Returns the integer part of the number x, removing any fractional digits.
ParameterTypeIn/OutOptionalDescription
xCOOSYSTEM@1.1:FLOATin
resultCOOSYSTEM@1.1:FLOATretval

Additional Information

ACL Object: COOSYSTEM@1.1:DefaultDeveloperACL
Secured: SECURED_READWRITE


[top]