fasseg / exp4j

A tiny math expression evaluator for the Java programming language
http://www.objecthunter.net/exp4j/
Apache License 2.0
495 stars 163 forks source link

SUM or PROD function #87

Open blankjul opened 7 years ago

blankjul commented 7 years ago

I am not sure how to implement a sum or a prod function that does iterate over a value. For example: f(x) = sum(i, 1, 10, x^i) Because the evaluation of the function is included in the sum, it is too late to use the current function implementation where the double[] is used as an argument.

Is there any other way to implement this? Thanks in advance.

boctulus commented 6 years ago

Please, I'm also interested.