Logo

Programming-Idioms

History of Idiom 66 > diff from v5 to v6

Edit summary for version 6 by :

Version 5

2015-07-31, 20:30:50

Version 6

2015-08-20, 16:47:31

Idiom #66 Big integer exponentiation

Calculate the result z of x power n, where x is a big integer and n is a positive integer.

Idiom #66 Big integer exponentiation

Calculate the result z of x power n, where x is a big integer and n is a positive integer.

Imports
import std.bigint;
Code
BigInt z = x ^^ n;