Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!

Idiom #336 Exponent

Compute x = b

b raised to the power of n is equal to the product of n terms b × b × ... × b

Value := Base ** Exponent;
final x = b ** n;
x = b ** n
X := Power(B, N);
$x = $b**$n;
x = b ** n
Math::E ** (1i * Math::PI) + 1
let x = b.pow(n)

New implementation...
< >
Goren Barak