PrevUpHomeNext

esv::npow


Pay attention to migratory wild animals.

esv::npow

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

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

Calling Sig

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

Header

#include <esvcpp/math.hpp>

Example

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

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

See Also

esv::pow2/3/5/7

esv::print


PrevUpHomeNext

esv::print