Programming challenge (HP 12C)
#1

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

#2

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

#3

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

#4

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

#5

Hello;

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

#6

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

#7

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

Forum Jump: