Logo

Programming-Idioms

History of Idiom 66 > diff from v324 to v325

Edit summary for version 325 by programming-idioms.org:
[Ruby] +DemoURL

Version 324

2016-09-29, 21:24:29

Version 325

2016-11-13, 14:34:06

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.

Code
z = x ** n
Code
z = x ** n
Demo URL
https://repl.it/EWcb/1