Post Reply 
50g User RPL Micro-Challenge: Fraction to a Power
10-09-2017, 10:01 PM
Post: #17
RE: 50g User RPL Micro-Challenge: Fraction to a Power
(10-09-2017 12:15 PM)John Keith Wrote:  While Gerald H's program is probably unbeatable, I'm guessing this

Code:
\<<SWAP OBJ\-> DROP2 UNROT OVER ^ UNROT ^ / \>>

is closer to what Joe has in mind, since it takes around 945ms on my HP 50.

John

I had these two in mind (both contain 8 commands):

<< SWAP OBJ-> DROP ->LIST SWAP ^ EVAL / >>

<< SWAP FXND UNROT OVER ^ UNROT ^ / >>


... but both suffer from the division at the end (yes, Gilles, division simplifies fractions, which isn't needed here). That's why Gerald's program is so fast.

<0|ΙΈ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: 50g User RPL Micro-Challenge: Fraction to a Power - Joe Horn - 10-09-2017 10:01 PM



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