Basic RPL question
|
02-29-2016, 05:22 AM
(This post was last modified: 02-29-2016 05:53 AM by DavidM.)
Post: #27
|
|||
|
|||
RE: Basic RPL question
(02-29-2016 03:48 AM)Claudio L. Wrote: I don't think so, algebraics are stored in RPN form, so evaluating simply means running the object as a stream of commands. There's no parsing at run time as far as I can remember. The algebraic is stored in a sequence which resembles an RPN stream, but it is still parsed and re-evaluated when EVAL is invoked. Case in point (at least on my 50g): Assuming you have no globals named 'X' or 'Y', enter 'X+Y/2' onto the stack. If you're in Exact mode (system flag 105 clear), the entry will probably* get translated to: \(X+\frac{Y}{2}\) Press ENTER to make a duplicate for reference. Then press EVAL and watch what happens: \(\frac{2\cdot X+Y}{2}\) ...so clearly there is some sort of parsing/re-compiling/reduction operation occurring as a result of EVAL. *System flags are consulted, which is easy to see if you do the above steps in Approximate mode (system flag 105 set). The results will be different in that mode, and it's entirely possible that other flag settings will affect the outcome as well. I didn't go through every possible combination. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Basic RPL question - Graan - 02-25-2016, 03:05 PM
RE: Basic RPL question - rprosperi - 02-25-2016, 03:19 PM
RE: Basic RPL question - David Hayden - 02-25-2016, 03:36 PM
RE: Basic RPL question - wojtek - 02-25-2016, 04:25 PM
RE: Basic RPL question - Graan - 02-25-2016, 07:53 PM
RE: Basic RPL question - David Hayden - 02-25-2016, 08:32 PM
RE: Basic RPL question - wojtek - 02-25-2016, 08:48 PM
RE: Basic RPL question - Graan - 02-25-2016, 08:54 PM
RE: Basic RPL question - wojtek - 02-25-2016, 08:35 PM
RE: Basic RPL question - Graan - 02-28-2016, 09:56 AM
RE: Basic RPL question - wojtek - 02-28-2016, 10:14 AM
RE: Basic RPL question - Paul Dale - 02-28-2016, 10:13 AM
RE: Basic RPL question - Graan - 02-28-2016, 01:02 PM
RE: Basic RPL question - DavidM - 02-28-2016, 03:27 PM
RE: Basic RPL question - rprosperi - 02-28-2016, 06:13 PM
RE: Basic RPL question - Graan - 02-28-2016, 07:00 PM
RE: Basic RPL question - Han - 02-28-2016, 02:26 PM
RE: Basic RPL question - Graan - 02-28-2016, 03:22 PM
RE: Basic RPL question - Graan - 02-28-2016, 05:05 PM
RE: Basic RPL question - DavidM - 02-28-2016, 06:23 PM
RE: Basic RPL question - Tugdual - 02-28-2016, 10:01 PM
RE: Basic RPL question - David Hayden - 02-28-2016, 11:28 PM
RE: Basic RPL question - DavidM - 02-29-2016, 12:30 AM
RE: Basic RPL question - wojtek - 02-29-2016, 12:39 AM
RE: Basic RPL question - Claudio L. - 02-29-2016, 03:48 AM
RE: Basic RPL question - Han - 02-29-2016, 04:19 AM
RE: Basic RPL question - DavidM - 02-29-2016 05:22 AM
|
User(s) browsing this thread: 4 Guest(s)