Function lupnt::PowInt¶
Defined in File constants.h
Function Documentation¶
-
double lupnt::PowInt(double base, int exponent)¶
Raise
baseto an integer power (positive, negative, or zero), without relying onstd::pow.Used by
UnitSystem::FromSI/UnitSystem::ToSIto build dimensional scale factors (length^a * time^b * mass^c) at compile time.- Parameters:
base – Base value
exponent – Integer exponent (may be negative)
- Returns:
baseraised toexponent