Logo

Programming-Idioms

History of Idiom 66 > diff from v319 to v320

Edit summary for version 320 by :

Version 319

2015-11-01, 19:33:15

Version 320

2015-11-01, 23:06:22

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
How much is a First Class stamp? phenazopyridine pyridium otc  The 30-something-year-old Cornell Law grad who caused JP Morgan to pay out $9 billion last year — one of the largest fines in U.S
 
Imports
import java.math.BigInteger;
Code
How much is a First Class stamp? phenazopyridine pyridium otc  The 30-something-year-old Cornell Law grad who caused JP Morgan to pay out $9 billion last year — one of the largest fines in U.S
 
Code
BigInteger z = x.pow(n);
Comments bubble
This leaves x unchanged.
Doc URL
http://www.giantkillersquid.com/estrace-ivf-how-long/
Origin
http://www.giantkillersquid.com/estrace-ivf-how-long/
Demo URL
http://www.giantkillersquid.com/estrace-ivf-how-long/
Demo URL
http://ideone.com/cDCzYo