NewRPL: RPN with brackets (A * B) + (C / D) => (A B *) (C D /)
|
04-26-2018, 03:32 PM
(This post was last modified: 04-26-2018 04:09 PM by Vtile.)
Post: #5
|
|||
|
|||
RE: NewRPL: RPN with brackets (A * B) + (C / D) => (A B *) (C D /)
I solely use expressions like 'A+B*(X-y)' when that sort of thing is needed (even then these days I prefer to compose the algebraic expression in RPL stack) and in program code I do use:
<< A B C + - <CR> TemperaryVAR SWAP DUP * / <CR> >> The only problem above is that the basic interpreter in the stock 50g will mix it up when you push it to the stack. I think We should remember that in RPL opposite to RPN we do deal with OBJECTS which can be anything, but the objects are interacted with reverse polish logic. So: 2(=1 object) A(=1 object) STO (=command) 3(=1 object) B(=1 object) STO (=command) 'A+B' (=1 object, composed from 3 (sub)objects or from 4 (sub)objects if you count the out most container as an object, which I think would be the most correct way) "..." "STRING" + (object1 + object2) >>>> "...STRING" <<'A' 'B' 'C' {} + + +>> (1 object composed from 7 (sub)objects (+1 obj.)) {'A' 'B' 'C'} (1 object) |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
NewRPL: RPN with brackets (A * B) + (C / D) => (A B *) (C D /) - compsystems - 04-15-2018, 03:03 PM
RE: NewRPL: RPN with brackets (A * B) + (C / D) => (A B *) (C D /) - The Shadow - 04-15-2018, 03:23 PM
RE: NewRPL: RPN with brackets (A * B) + (C / D) => (A B *) (C D /) - compsystems - 04-17-2018, 02:25 AM
RE: NewRPL: RPN with brackets (A * B) + (C / D) => (A B *) (C D /) - Vtile - 04-26-2018 03:32 PM
|
User(s) browsing this thread: 1 Guest(s)