2022 April Release

Class FSCEXPEXT@1.1001:MathFunctions Permanent link for this heading

Class Hierarchy

Object > ComponentObject > 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

Properties Permanent link for this heading

Type

Property

Name

float(1, 16)

E

E

float(1, 16)

LN10

LN10

float(1, 16)

LN2

LN2

float(1, 16)

LOG10E

LOG10E

float(1, 16)

LOG2E

LOG2E

float(1, 16)

PI

PI

float(1, 16)

SQRT1_2

SQRT 1/2

float(1, 16)

SQRT2

SQRT 2

Actions Permanent link for this heading

Return Type

Signature

float

abs(
  float x,
  out retval float result)

float

acos(
  float x,
  out retval float result)

float

acosh(
  float x,
  out retval float result)

float

asin(
  float x,
  out retval float result)

float

asinh(
  float x,
  out retval float result)

float

atan(
  float x,
  out retval float result)

float

atan2(
  float y,
  float x,
  out retval float result)

float

atanh(
  float x,
  out retval float result)

float

cbrt(
  float x,
  out retval float result)

float

ceil(
  float x,
  out retval float result)

float

clz32(
  float x,
  out retval float result)

float

cos(
  float x,
  out retval float result)

float

cosh(
  float x,
  out retval float result)

float

exp(
  float x,
  out retval float result)

float

expm1(
  float x,
  out retval float result)

float

floor(
  float x,
  out retval float result)

float

fround(
  float x,
  out retval float result)

float

hypot(
  float x,
  float y,
  out retval float result)

float

imul(
  float x,
  float y,
  out retval float result)

float

log(
  float x,
  out retval float result)

float

log10(
  float x,
  out retval float result)

float

log1p(
  float x,
  out retval float result)

float

log2(
  float x,
  out retval float result)

float

pow(
  float x,
  float y,
  out retval float result)

float

random(
  out retval float result)

float

round(
  float x,
  out retval float result)

float

sign(
  float x,
  out retval float result)

float

sin(
  float x,
  out retval float result)

float

sinh(
  float x,
  out retval float result)

float

sqrt(
  float x,
  out retval float result)

float

tan(
  float x,
  out retval float result)

float

tanh(
  float x,
  out retval float result)

float

trunc(
  float x,
  out retval float result)