Class PowerNIterator
java.lang.Object
ch.obermuhlner.math.big.internal.PowerNIterator
- All Implemented Interfaces:
PowerIterator
PowerIterator to calculate xn.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MathContextprivate BigDecimalprivate final BigDecimal -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalculates the next power.Returns the current power.
-
Field Details
-
x
-
mathContext
-
powerOfX
-
-
Constructor Details
-
PowerNIterator
-
-
Method Details
-
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
-