Programming challenge (HP 12C)



#8

Write the shortest (measured by steps not keystokes) program for 3 root...Platform: HP 12C


#9

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...)?


#10

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...


#11

> 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?

#12

Hello;

I did not get to the point (Sorry!). What is 3 root?

#13

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...

#14

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 1,198 11-03-2013, 07:30 PM
Last Post: Kimberly Thompson
  HHC 2013 RPN Programming Challenge - Final Thought Jeff O. 7 923 10-17-2013, 11:02 AM
Last Post: Jeff O.
  HHC 2012 RPN Programming Challenge Conundrum Jeff O. 15 1,385 10-08-2012, 03:34 PM
Last Post: Gerson W. Barbosa
  Mini-challenge: HHC2012 RPL programming contest with larger input David Hayden 14 1,456 10-05-2012, 10:36 PM
Last Post: David Hayden
  Weekend programming challenge: Euler's Totient function Allen 36 2,723 06-03-2012, 10:39 PM
Last Post: Paul Dale
  A Sunday Programming Challenge Allen 61 3,602 03-17-2012, 06:48 PM
Last Post: Allen
  HHC2012 programming challenge?? Pal G. 28 2,093 09-25-2011, 05:02 PM
Last Post: Paul Dale
  HP 12C, 12C Platinum & 15C iOS App Walter Lam 2 481 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 1,253 05-08-2011, 11:08 AM
Last Post: Marcus von Cube, Germany
  HP-12C mini-challenge - Heegner numbers Gerson W. Barbosa 19 1,411 03-26-2011, 02:41 PM
Last Post: Gerson W. Barbosa

Forum Jump: