Package ch.obermuhlner.math.big.internal
Class PowerNIterator
- java.lang.Object
-
- ch.obermuhlner.math.big.internal.PowerNIterator
-
- All Implemented Interfaces:
PowerIterator
public class PowerNIterator extends java.lang.Object implements PowerIterator
PowerIteratorto calculate xn.
-
-
Field Summary
Fields Modifier and Type Field Description private java.math.MathContextmathContextprivate java.math.BigDecimalpowerOfXprivate java.math.BigDecimalx
-
Constructor Summary
Constructors Constructor Description PowerNIterator(java.math.BigDecimal x, java.math.MathContext mathContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcalculateNextPower()Calculates the next power.java.math.BigDecimalgetCurrentPower()Returns the current power.
-
-
-
Method Detail
-
getCurrentPower
public java.math.BigDecimal getCurrentPower()
Description copied from interface:PowerIteratorReturns the current power.- Specified by:
getCurrentPowerin interfacePowerIterator- Returns:
- the current power.
-
calculateNextPower
public void calculateNextPower()
Description copied from interface:PowerIteratorCalculates the next power.- Specified by:
calculateNextPowerin interfacePowerIterator
-
-