Package ch.obermuhlner.math.big.internal
Class PowerTwoNMinusOneIterator
java.lang.Object
ch.obermuhlner.math.big.internal.PowerTwoNMinusOneIterator
- All Implemented Interfaces:
PowerIterator
PowerIterator
to calculate x2*n-1.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MathContext
private BigDecimal
private final BigDecimal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Calculates the next power.Returns the current power.
-
Field Details
-
mathContext
-
xPowerTwo
-
powerOfX
-
-
Constructor Details
-
PowerTwoNMinusOneIterator
-
-
Method Details
-
getCurrentPower
Description copied from interface:PowerIterator
Returns the current power.- Specified by:
getCurrentPower
in interfacePowerIterator
- Returns:
- the current power.
-
calculateNextPower
public void calculateNextPower()Description copied from interface:PowerIterator
Calculates the next power.- Specified by:
calculateNextPower
in interfacePowerIterator
-