01-21-2016, 12:59 PM
Since newRPL swapped the behavior of + and ADD, we have all operators in place for list processing. If all other commands also accept list processing, there's no technical barrier for returning a list of results during evaluation of an expression.
This means for example:
4 √ would return { -2 2 }
XROOT would also return all roots depending on the exponent.
When used within an expression, it would continue to evaluate normally as 2 (or more) different paths.
I wonder if a flag could activate this mode, or we should leave it alone and have new command names that return all roots (√ALL and XROOTALL for example).
This mode is not necessarily good for all cases, I can think of a Newton-Raphson iteration involving a square root, where each iteration would double the number of results and eat all the memory.
Any thoughts?
This means for example:
4 √ would return { -2 2 }
XROOT would also return all roots depending on the exponent.
When used within an expression, it would continue to evaluate normally as 2 (or more) different paths.
I wonder if a flag could activate this mode, or we should leave it alone and have new command names that return all roots (√ALL and XROOTALL for example).
This mode is not necessarily good for all cases, I can think of a Newton-Raphson iteration involving a square root, where each iteration would double the number of results and eat all the memory.
Any thoughts?