From 54340ada63d3515181e72e4726748fc5391bff3a Mon Sep 17 00:00:00 2001 From: Arthur Drobot Date: Tue, 25 Jul 2017 14:08:46 -0700 Subject: [PATCH] Fix initial array index in the product function. --- src/org/nwapw/abacus/number/FunctionDatabase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/nwapw/abacus/number/FunctionDatabase.java b/src/org/nwapw/abacus/number/FunctionDatabase.java index acab4f1..4ec221d 100755 --- a/src/org/nwapw/abacus/number/FunctionDatabase.java +++ b/src/org/nwapw/abacus/number/FunctionDatabase.java @@ -43,7 +43,7 @@ public class FunctionDatabase { @Override protected NumberInterface applyInternal(NumberInterface[] params) { - NumberInterface product = params[1]; + NumberInterface product = params[0]; for(int i = 1; i < params.length; i++){ product = product.multiply(params[i]); }