Programming challenge (HP 12C) « Next Oldest | Next Newest »

 ▼ mapet Member Posts: 57 Threads: 27 Joined: Jan 1970 03-28-2002, 03:08 AM Write the shortest (measured by steps not keystokes) program for 3 root...Platform: HP 12C ▼ Frank Glitz Junior Member Posts: 24 Threads: 3 Joined: Jan 1970 03-28-2002, 04:15 AM Is it allowed to use y^x? :-) Or the LN / e^x functions? :-) Or should algorithms avoiding these functions be used? :-( How large is your solution (if you have one yet...)? ▼ mapet Member Posts: 57 Threads: 27 Joined: Jan 1970 03-28-2002, 05:20 AM My solution is 4 steps long, but it seems that you've already guessed it ... :-) BTW y^x makes it 5 steps long. I have to work on more difficult challenge next time... ▼ Frank Glitz Junior Member Posts: 24 Threads: 3 Joined: Jan 1970 03-28-2002, 05:52 AM > I have to work on more difficult challenge next time... Not really! Just don't allow the usage of these functions of the 12C. That's a little harder nut to crack (for someone whose math courses are long-forgotten, like me ;-) Someone remembers how to do? Vieira, Luiz C. (Brazil) Posting Freak Posts: 4,027 Threads: 172 Joined: Aug 2005 03-28-2002, 08:39 AM Hello; I did not get to the point (Sorry!). What is 3 root? Thibaut.be Senior Member Posts: 610 Threads: 53 Joined: Aug 2005 03-28-2002, 12:01 PM I guess this is you solution : y = e^((ln x)/3) so the steps are : 01 43 23 g e^x 02 3 3 03 10 / 04 43 22 g LN Note how it is easy in a HP to calculate a apperently more complicated formula... John Ioannidis Member Posts: 141 Threads: 35 Joined: Jun 2007 03-28-2002, 08:44 PM Why is this even a challenge? [3] [1/x] [y^x] three steps, three keystrokes.

 Possibly Related Threads... Thread Author Replies Views Last Post HP 12C Platinum Programming v. Gold Face Dean Lewis 10 865 11-03-2013, 07:30 PM Last Post: Kimberly Thompson HHC 2013 RPN Programming Challenge - Final Thought Jeff O. 7 640 10-17-2013, 11:02 AM Last Post: Jeff O. HHC 2012 RPN Programming Challenge Conundrum Jeff O. 15 962 10-08-2012, 03:34 PM Last Post: Gerson W. Barbosa Mini-challenge: HHC2012 RPL programming contest with larger input David Hayden 14 1,042 10-05-2012, 10:36 PM Last Post: David Hayden Weekend programming challenge: Euler's Totient function Allen 36 1,954 06-03-2012, 10:39 PM Last Post: Paul Dale A Sunday Programming Challenge Allen 61 2,549 03-17-2012, 06:48 PM Last Post: Allen HHC2012 programming challenge?? Pal G. 28 1,497 09-25-2011, 05:02 PM Last Post: Paul Dale HP 12C, 12C Platinum & 15C iOS App Walter Lam 2 339 06-02-2011, 01:25 PM Last Post: Andrés C. Rodríguez (Argentina) HP-15C mini-challenge (Project Euler - problem #1) Gerson W. Barbosa 14 896 05-08-2011, 11:08 AM Last Post: Marcus von Cube, Germany HP-12C mini-challenge - Heegner numbers Gerson W. Barbosa 19 1,024 03-26-2011, 02:41 PM Last Post: Gerson W. Barbosa

Forum Jump: