Skip to main content

Module math

Module math 

Source

Functionsยง

atan2
Quadrant-aware arctangent, including signed zeros and infinite operands.
cos
Scalar cosine using the common angle reduction.
exp2
Platform-independent base-two exponent; finite underflow rounds into subnormals.
log2
Binary logarithm using a normalized mantissa and a convergent atanh series.
log10_round
Nearest integer decimal logarithm; nonpositive inputs produce the SSE indefinite value.
pow
Effect power contract: y=0 yields 1, nonpositive bases yield 0, NaNs propagate canonically.
rz_exp2
Existing rotation/zoom base-two exponent API.
rz_log2
Existing rotation/zoom base-two logarithm API.
scale
Decimal scaling with the same 64-bit significand intermediate rounding as x87.
scale_round
Nearest-even integer after decimal scaling, including native indefinite overflow.
sin
Scalar sine using the common angle reduction.
sincos
Cosine and sine with shared quadrant reduction; return order matches the x87 API.