pow

Compute the value of x n, where n is an integer

Examples

import std.math.operations : feqrel;

assert(pow(2.0, 5) == 32.0);
assert(pow(1.5, 9).feqrel(38.4433) > 16);
assert(pow(real.nan, 2) is real.nan);
assert(pow(real.infinity, 2) == real.infinity);

Meta