sincerely
Singaporean
If you have not done so, read this full tutorial on how to use SGEXTN to build an application.
class SGLFloatMath;
part of SGEXTN module SG_Math
static function class providing floating point mathematical operations
list of all including inherited members
preprocessor file inclusion directive: #include ‹SGLFloatMath.h›
CMake target for BuildLah: SGEXTN::SG_Math
see this link for more information about BuildLah
parent class: (none)
children classes: (none)
static float aToThePowerOfB(float a, float b);
static float absoluteValue(float x);
static float arccosine(float x);
static float arcsine(float x);
static float arctangent(float x);
static float arctangentQuadrantAware(float y, float x);
static float ceiling(float x);
static int ceilingToInt(float x);
static long long ceilingToLongLong(float x);
static float cosecant(float x);
static float cosine(float x);
static float cotangent(float x);
static float cubeRoot(float x);
static float eToThePowerOfThis(float x);
static float extendedFactorial(float x);
static float floor(float x);
static int floorToInt(float x);
static long long floorToLongLong(float x);
static float integralOfNormalDistributionFromLeft(float x);
static float integralOfNormalDistributionFromRight(float x);
static float logarithmBase10(float x);
static float logarithmBase2(float x);
static float maximum(float a, float b);
static float minimum(float a, float b);
static float modulo(float a, float b);
static float naturalLogarithm(float x);
static float round(float x);
static int roundToInt(float x);
static long long roundToLongLong(float x);
static float secant(float x);
static float sine(float x);
static float squareRoot(float x);
static float tangent(float x);
static float twoToThePowerOfThis(float x);
SGLFloatMath provides mathematical functions for floating point numbers including logarithm, square root, and factorial (gamma).
Uses ‹cmath› from Standard Template Library
Returns a^b.
For negative b, the behaviour follows whatever is defined by the Standard Template Library.
Returns absolute value of x.
Returns the angle in radians, the cosine of which is x.
For x less than -1 or more than 1, the behaviour follows whatever is defined by the Standard Template Library.
Multiply by 180 / pi to convert from radians to degrees.
This is the inverse function of cosine.
Returns the angle in radians, the sine of which is x.
For x less than -1 or more than 1, the behaviour follows whatever is defined by the Standard Template Library.
Multiply by 180 / pi to convert from radians to degrees.
This is the inverse function of sine.
Returns the angle in radians, the tangent of which is x.
Multiply by 180 / pi to convert from radians to degrees.
This is the inverse function of tangent.
Returns the angle in radians such that rotating (1, 0) by that angle around the origin counterclockwise gives the point (k * x, k * y) where k is positive.
Multiply by 180 / pi to convert from radians to degrees.
Returns x rounded up to the nearest integer.
Returns x rounded up to the nearest integer.
Returns x rounded up to the nearest integer.
Returns the cosecant of a x radians angle.
Multiply by pi / 180 to convert degrees to radians.
This is the reciprocal function of sine.
Returns the cosine of a x radians angle.
Multiply by pi / 180 to convert degrees to radians.
Returns the cotangent of a x radians angle.
Multiply by pi / 180 to convert degrees to radians.
This is the reciprocal function of tangent.
Returns cbrt(x).
For negative x, the behaviour follows whatever is defined by the Standard Template Library.
Returns e^x where e is Euler's Number.
Returns the extended factorial (gamma function) of x.
Returns x rounded down to the nearest integer.
Returns x rounded down to the nearest integer.
Returns x rounded down to the nearest integer.
Returns the integral of a normal distribution from negative infinity to x.
Returns the integral of a normal distribution from x to positive infinity.
Returns the base 10 logarithm of x.
For negative x, the behaviour follows whatever is defined by the Standard Template Library.
Returns the base 2 logarithm of x.
For negative x, the behaviour follows whatever is defined by the Standard Template Library.
Returns maximum of a and b.
Returns minimum of a and b.
Returns remainder of a when divided by b.
Returns ln(x).
For negative x, the behaviour follows whatever is defined by the Standard Template Library.
Returns x rounded to the nearest integer.
Returns x rounded to the nearest integer.
Returns x rounded to the nearest integer.
Returns the secant of a x radians angle.
Multiply by pi / 180 to convert degrees to radians.
This is the reciprocal function of cosine.
Returns the sine of a x radians angle.
Multiply by pi / 180 to convert degrees to radians.
Returns sqrt(x).
For negative x, the behaviour follows whatever is defined by the Standard Template Library.
Returns the tangent of a x radians angle.
Multiply by pi / 180 to convert degrees to radians.
Returns 2^x.
©2025 05524F.sg (Singapore)