mirror of
https://github.com/DanilaFe/abacus
synced 2024-12-22 07:20:09 -08:00
Fix initial array index in the product function.
This commit is contained in:
parent
21cd9fd052
commit
54340ada63
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user