From 50b0c86edd0207d82363759212f781c0f4645b8a Mon Sep 17 00:00:00 2001 From: Riley Jones Date: Fri, 4 Aug 2017 13:52:41 -0700 Subject: [PATCH] Fix exp function --- src/main/java/org/nwapw/abacus/plugin/StandardPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/nwapw/abacus/plugin/StandardPlugin.java b/src/main/java/org/nwapw/abacus/plugin/StandardPlugin.java index 2d6aadb..c5b9b20 100755 --- a/src/main/java/org/nwapw/abacus/plugin/StandardPlugin.java +++ b/src/main/java/org/nwapw/abacus/plugin/StandardPlugin.java @@ -429,7 +429,7 @@ public class StandardPlugin extends Plugin { boolean takeReciprocal = exponent.compareTo((new NaiveNumber(0)).promoteTo(numberClass))<0; exponent = FUNCTION_ABS.apply(exponent); NumberInterface power = number; - for(NumberInterface currentExponent =(new NaiveNumber(1)).promoteTo(numberClass);currentExponent.compareTo(exponent)<0;currentExponent.add((new NaiveNumber(1)).promoteTo(numberClass))){ + for(NumberInterface currentExponent =(new NaiveNumber(1)).promoteTo(numberClass);currentExponent.compareTo(exponent)<0;currentExponent = currentExponent.add((new NaiveNumber(1)).promoteTo(numberClass))){ power = power.multiply(number); if(Thread.currentThread().isInterrupted()) return null;