Post Reply 
newRPL: Alpha demo 0.9 released [UPDATED 2017-10-25]
08-29-2017, 05:51 PM (This post was last modified: 08-29-2017 06:25 PM by The Shadow.)
Post: #74
RE: newRPL: Alpha demo 0.9 released [UPDATED 2017-08-24]
(08-29-2017 03:18 PM)Claudio L. Wrote:  you generate an object with a tree structure (+ (+ 2 3) 1) because for the parser + is a binary operator, but for the (future) CAS to operate properly, it flattens the tree to (+ 2 3 1), which makes it simpler to simplify terms, search for expressions, cancel out terms, etc.
Your fraction '2/3' is converted after EVAL to '2*INV(3)' per the rules above. What you get from OBJ-> is one level expansion of the main operator. Perhaps OBJ-> should convert to canonical form always before expanding, so you get consistent results every time.

Other than that, everything works as designed.

Interesting. I'll have to rethink how I do things a bit, then. ->NUM followed by ->Q should do the trick.

Will we get access to the full tree, like the old ->LST and ->ALG commands? Very useful at times.

I'll recreate the list and email it to you.
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
RE: newRPL: Alpha demo 0.9 released [UPDATED 2017-08-24] - The Shadow - 08-29-2017 05:51 PM

User(s) browsing this thread: 1 Guest(s)