mirror of
https://github.com/DanilaFe/abacus
synced 2025-04-22 16:37:08 -07:00
Fix initial array index in the product function.
This commit is contained in:
parent
4962aae083
commit
46da95e7b5
@ -43,7 +43,7 @@ public class FunctionDatabase {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected NumberInterface applyInternal(NumberInterface[] params) {
|
protected NumberInterface applyInternal(NumberInterface[] params) {
|
||||||
NumberInterface product = params[1];
|
NumberInterface product = params[0];
|
||||||
for(int i = 1; i < params.length; i++){
|
for(int i = 1; i < params.length; i++){
|
||||||
product = product.multiply(params[i]);
|
product = product.multiply(params[i]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user