Logo

Programming-Idioms

History of Idiom 66 > diff from v300 to v301

Edit summary for version 301 by :

Version 300

2015-10-29, 12:57:18

Version 301

2015-10-29, 13:11:47

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 java.math.BigInteger;
Imports
Remove card avodart hair loss dosage  Whether he would go so far as to write him a check for $60 million and say goodbye and good riddance, no one can say
 
Code
BigInteger z = x.pow(n);
Code
Remove card avodart hair loss dosage  Whether he would go so far as to write him a check for $60 million and say goodbye and good riddance, no one can say
 
Comments bubble
This leaves x unchanged.
Doc URL
http://www.glasfryn.co.uk/enalapril-maleate-5-mg-tab/
Origin
http://www.glasfryn.co.uk/enalapril-maleate-5-mg-tab/
Demo URL
http://ideone.com/cDCzYo
Demo URL
http://www.glasfryn.co.uk/enalapril-maleate-5-mg-tab/