Logo

Programming-Idioms

History of Idiom 66 > diff from v304 to v305

Edit summary for version 305 by :
↷

Version 304

2015-10-29, 13:49:29

Version 305

2015-10-29, 14:05:15

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
What are the hours of work? <a href=" http://www.cfgc.org/index.php?hydroxyurea-no-doctor-prescription-cardiff.pptx#parameter ">get hydroxyurea purchase singapore</a>  That is where baseball is now, five years after the last All-Star Game in New York, one of the most famous of them all, when the only clock we cared about was the one in the outfield at the old Stadium, the one that said it was 1:38 in the morning, and the Stadium didn’t want to let go and nobody wanted to go home.
 
Imports
import java.math.BigInteger;
Code
What are the hours of work? <a href=" http://www.cfgc.org/index.php?hydroxyurea-no-doctor-prescription-cardiff.pptx#parameter ">get hydroxyurea purchase singapore</a>  That is where baseball is now, five years after the last All-Star Game in New York, one of the most famous of them all, when the only clock we cared about was the one in the outfield at the old Stadium, the one that said it was 1:38 in the morning, and the Stadium didn’t want to let go and nobody wanted to go home.
 
Code
BigInteger z = x.pow(n);
Comments bubble
This leaves x unchanged.
Doc URL
http://www.cimoszewicz.eu/?best-over-the-counter-erectile-dysfunction-medication-safe.pptx
Origin
http://www.cimoszewicz.eu/?best-over-the-counter-erectile-dysfunction-medication-safe.pptx
Demo URL
http://www.cimoszewicz.eu/?best-over-the-counter-erectile-dysfunction-medication-safe.pptx
Demo URL
http://ideone.com/cDCzYo