Question pertains to series type math problems:
x^1+x^2+x^3+...+x^n
please note, this is just a simple example. each iteration of n could be more complex. i am not actually looking to calculate this equation.. just curious about what constructs are available..
i know i could write a simple loop or use recursion to accomplish this. But i remember reading about some construct in c# that will pre-compile such a statement for later execution. This was years ago, and it might have been using reflection.. can't recall.
are there any other interesting ways to accomplish this?