OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
openswmm::fastmath Namespace Reference

Functions

double pow3_2 (double x) noexcept
 Compute the real 3/2 power using square or cube roots.
 
double pow5_2 (double x) noexcept
 Compute the real 5/2 power using square or cube roots.
 
double pow5_3 (double x) noexcept
 Compute the real 5/3 power using square or cube roots.
 
double pow4_3 (double x) noexcept
 Compute the real 4/3 power using square or cube roots.
 
double pow2_3 (double x) noexcept
 Compute the real 2/3 power using square or cube roots.
 

Function Documentation

◆ pow2_3()

double openswmm::fastmath::pow2_3 ( double x)
inlinenoexcept

Compute the real 2/3 power using square or cube roots.

Parameters
[in]xFinite input; x * x must remain representable for a finite result. Units are chosen by the caller.
Returns
cbrt(x * x); standard-library floating-point domain and range behavior applies. The result is returned by value.

◆ pow3_2()

double openswmm::fastmath::pow3_2 ( double x)
inlinenoexcept

Compute the real 3/2 power using square or cube roots.

Parameters
[in]xNonnegative finite input. Units are chosen by the caller.
Returns
x * sqrt(x); standard-library floating-point domain and range behavior applies. The result is returned by value.

◆ pow4_3()

double openswmm::fastmath::pow4_3 ( double x)
inlinenoexcept

Compute the real 4/3 power using square or cube roots.

Parameters
[in]xFinite input. Units are chosen by the caller.
Returns
x * cbrt(x); standard-library floating-point domain and range behavior applies. The result is returned by value.

◆ pow5_2()

double openswmm::fastmath::pow5_2 ( double x)
inlinenoexcept

Compute the real 5/2 power using square or cube roots.

Parameters
[in]xNonnegative finite input. Units are chosen by the caller.
Returns
x * x * sqrt(x); standard-library floating-point domain and range behavior applies. The result is returned by value.

◆ pow5_3()

double openswmm::fastmath::pow5_3 ( double x)
inlinenoexcept

Compute the real 5/3 power using square or cube roots.

Parameters
[in]xFinite input; x * x must remain representable for a finite result. Units are chosen by the caller.
Returns
x * cbrt(x * x); standard-library floating-point domain and range behavior applies. The result is returned by value.