I was trying to use IFTE in RPN rather than algebraic, and can't figure it out
On the stack, I assume I want -
* Test value
* Value to put on stack if test value is true
* Value to put on stack if test value is false
Say I want something like -
<< -> n 1 n <= 1 'f(n-1)' IFTE >>
Where I am defining a recursive function f(), and I want to execute f(n-1) if n < 1. This is not working.
I am not sure why.
On the stack, I assume I want -
* Test value
* Value to put on stack if test value is true
* Value to put on stack if test value is false
Say I want something like -
<< -> n 1 n <= 1 'f(n-1)' IFTE >>
Where I am defining a recursive function f(), and I want to execute f(n-1) if n < 1. This is not working.
I am not sure why.
