Post Reply 
RPL Micro-Challenge: Christmas in July
07-19-2017, 04:37 PM (This post was last modified: 07-19-2017 04:42 PM by Gerson W. Barbosa.)
Post: #26
RE: RPL Micro-Challenge: Christmas in July
(07-19-2017 12:56 PM)Joe Horn Wrote:  EDIT: I just noticed something cool. If you run the program above on an input of 'X' (undefined), and then EVAL the resulting mess, you get this:

\[\frac { { X }^{ 3 }+3{ X }^{ 2 }+2X }{ 6 }\]
Now press FACTOR (or COLLECT) and see this:
\[\frac { X\cdot (X+1)\cdot (X+2) }{ 3\cdot 2 }\]
It almost does all the thinking for you. Big Grin

It works with most programs:

X « 1 + DUP ACOSH SINH SQ * 6 / » EVAL LIN FACTOR --> 'X*(X+1)*(X+2)/(3*2)'
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: RPL Micro-Challenge: Christmas in July - Gerson W. Barbosa - 07-19-2017 04:37 PM



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