HP Forums

Full Version: little math puzzle. Map 1 0 -1 to 1 0.5 0
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(05-21-2018 08:07 PM)J-F Garnier Wrote: [ -> ]2 / INT

That's also my final solution.

Dieter
How about:
7
x<>y
MOD
(05-21-2018 07:46 PM)Dieter Wrote: [ -> ]
(05-21-2018 07:33 PM)Joe Horn Wrote: [ -> ]1 – SQRT

Works on all RPN/RPL models, I think.

Hey, that's a good one!
My solution is different, but takes the same three steps.
Anyone else with three steps? Or even less?

2 / INT

HP-42S:

2 BASE/

hp 33s:

2 INT/

Gerson.
Ok, after the fail above (always check twice) here a new attempt:
R->B
SR
B->R

so three steps
Arno
(05-21-2018 08:25 PM)Gerson W. Barbosa Wrote: [ -> ]HP-42S:

2 BASE/

Nice! I started down that path but didn't remember the BASE/ function.
On the Prime there is BITSR(), 1 step.
Arno
DSE X
SQRT

Cheers, Werner
(05-21-2018 04:31 PM)Dieter Wrote: [ -> ]For three points it can always be done with a parabolic fit. But maybe there also is another and shorter/faster way to do it. ;-)

What about

5 -> 2
2 -> 1
1 -> 0


A longer and slower way here. :-)

Gerson.
(05-21-2018 08:15 PM)Logan Wrote: [ -> ]How about:
7
x<>y
MOD

An interesting solution, regardless the number of steps. This works on the 33s as well (Rmdr == MOD).

Gerson.
(05-21-2018 08:25 PM)Gerson W. Barbosa Wrote: [ -> ]hp 33s:

2 INT/

The same idea in RPL is 2 IQUOT.
(05-21-2018 08:15 PM)Logan Wrote: [ -> ]How about:
7
x<>y
MOD

(05-21-2018 09:11 PM)Werner Wrote: [ -> ]DSE X
SQRT

Nice – two very cool solutions.
If you have calculators with the respective commands, that is. ;-)
2 / INT probably is the most universal one.

Other solutions with more special commands:

2 INT÷ (HP35s)
2 IDIV (WP34s)
LN ROUNDI (WP34s)

Dieter
Pages: 1 2
Reference URL's