PrevUpHomeNext

utx::npow


utx::npow

utx::npow calculates the result of exp to the power of base, the exp must be an integral type.

utx::npow is an object of class utx::npow_class.

Calling Sig

constexpr auto result = utx::npow<N>(base);	// exp N must be an integral type.

Header

#include <utxcpp/math.hpp>

Example

#include <utxcpp/math.hpp>
#include <utxcpp/core.hpp>

int main()
{
	constexpr auto x = utx::npow<utx::u32{3}>(10);	// 1000.0f
	constexpr auto y = utx::npow<3>(10);	// 1000.0f
	utx::print(x, y);
}

See Also

utx::pow2/3/5/7

utx::print


PrevUpHomeNext

utx::print

esv::print