HP Forums
little math puzzle. Map 1 0 -1 to 1 0.5 0 - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: little math puzzle. Map 1 0 -1 to 1 0.5 0 (/thread-10771.html)

Pages: 1 2


RE: little math puzzle. Map 1 0 -1 to 1 0.5 0 - Dieter - 05-21-2018 08:12 PM

(05-21-2018 08:07 PM)J-F Garnier Wrote:  2 / INT

That's also my final solution.

Dieter


RE: little math puzzle. Map 1 0 -1 to 1 0.5 0 - Logan - 05-21-2018 08:15 PM

How about:
7
x<>y
MOD


RE: little math puzzle. Map 1 0 -1 to 1 0.5 0 - Gerson W. Barbosa - 05-21-2018 08:25 PM

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


RE: little math puzzle. Map 1 0 -1 to 1 0.5 0 - Arno K - 05-21-2018 08:27 PM

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

so three steps
Arno


RE: little math puzzle. Map 1 0 -1 to 1 0.5 0 - Logan - 05-21-2018 08:28 PM

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


RE: little math puzzle. Map 1 0 -1 to 1 0.5 0 - Arno K - 05-21-2018 08:50 PM

On the Prime there is BITSR(), 1 step.
Arno


RE: little math puzzle. Map 1 0 -1 to 1 0.5 0 - Werner - 05-21-2018 09:11 PM

DSE X
SQRT

Cheers, Werner


RE: little math puzzle. Map 1 0 -1 to 1 0.5 0 - Gerson W. Barbosa - 05-21-2018 11:09 PM

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


RE: little math puzzle. Map 1 0 -1 to 1 0.5 0 - Gerson W. Barbosa - 05-21-2018 11:15 PM

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


RE: little math puzzle. Map 1 0 -1 to 1 0.5 0 - Joe Horn - 05-22-2018 12:15 AM

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

2 INT/

The same idea in RPL is 2 IQUOT.


RE: little math puzzle. Map 1 0 -1 to 1 0.5 0 - Dieter - 05-22-2018 05:59 AM

(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