HP Forums

Full Version: Programming challenge (HP 12C)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

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

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

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

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

Hello;

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

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

Why is this even a challenge? [3] [1/x] [y^x]
three steps, three keystrokes.