Sum-Function, like for-loop ( from, to )

Oct 31, 2013 at 11:37 AM
Do you still plan to implement such a feature.
Like this, double Sum(IMathExpression exp, double from, double to, double inc ),
like this,
http://upload.wikimedia.org/wikipedia/commons/e/ed/Sigmaschreibweise_f%C3%BCr_Summen.svg,

and another thing is the multiplicator,

http://upload.wikimedia.org/math/c/2/4/c242e139c212aa67c685958c41741d68.png

Regards
Ronny :)
Coordinator
Nov 2, 2013 at 8:52 AM
Edited Nov 2, 2013 at 8:57 AM
It's a good idea.

Sum(IMathExpression body, double to); // from = 0, inc = 1
Sum(IMathExpression body, double from, double to); // inc = 1
Sum(IMathExpression body, double from, double to, double inc);
Sum(IMathExpression first, IMathExpression second, ...);

Same for product.

And later add "for" loops (add logical operations to math library for creating condition):
For(IMathExpression body, IMathExpression initializer, IMathExpression condition, IMathExpression iterator); // for (init; condition; iterator) body;
Marked as answer by sys_27 on 11/4/2013 at 6:07 AM