<CONTEXT></BUG>static final NumberContext DISPLAY = NumberContext.getGeneral(6);static int getAdjustmentExponent(final double largest, final double smallest) {final double tmpLargestExp = largest > ZERO ? PrimitiveFunction.LOG10.invoke(largest) : ZERO;final double tmpSmallestExp = smallest > ZERO ? PrimitiveFunction.LOG10.invoke(smallest) : -EIGHT;<extra_id_0>static final NumberContext DISPLAY = NumberContext.getGeneral(6);static int getAdjustmentExponent(final double largest, final double smallest) {final double tmpLargestExp = largest > ZERO ? PrimitiveFunction.LOG10.invoke(largest) : ZERO;final double tmpSmallestExp = smallest > ZERO ? PrimitiveFunction.LOG10.invoke(smallest) : -EIGHT;<BUG>if ((tmpLargestExp > _16_0) || (tmpSmallestExp < -_16_0)) {</BUG>return 0;} else {final double tmpNegatedAverage = (tmpLargestExp + tmpSmallestExp) / (-TWO);</CONTEXT>
package org.ojalgo.optimisation;import static org.ojalgo.constant.PrimitiveMath.*;import org.ojalgo.function.PrimitiveFunction;import org.ojalgo.type.context.NumberContext;abstract class OptimisationUtils {private static final double _32_0 = EIGHT + EIGHT + EIGHT + EIGHT;if ((tmpLargestExp - tmpSmallestExp) > _32_0) {