little math puzzle. Map 1 0 -1 to 1 0.5 0
05-21-2018, 08:12 PM
Post: #21
 Dieter Senior Member Posts: 2,397 Joined: Dec 2013
RE: little math puzzle. Map 1 0 -1 to 1 0.5 0
(05-21-2018 08:07 PM)J-F Garnier Wrote:  2 / INT

That's also my final solution.

Dieter
05-21-2018, 08:15 PM
Post: #22
 Logan Member Posts: 138 Joined: Jul 2016
RE: little math puzzle. Map 1 0 -1 to 1 0.5 0
7
x<>y
MOD
05-21-2018, 08:25 PM
Post: #23
 Gerson W. Barbosa Senior Member Posts: 1,343 Joined: Dec 2013
RE: little math puzzle. Map 1 0 -1 to 1 0.5 0
(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.
05-21-2018, 08:27 PM
Post: #24
 Arno K Senior Member Posts: 440 Joined: Mar 2015
RE: little math puzzle. Map 1 0 -1 to 1 0.5 0
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:28 PM
Post: #25
 Logan Member Posts: 138 Joined: Jul 2016
RE: little math puzzle. Map 1 0 -1 to 1 0.5 0
(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.
05-21-2018, 08:50 PM
Post: #26
 Arno K Senior Member Posts: 440 Joined: Mar 2015
RE: little math puzzle. Map 1 0 -1 to 1 0.5 0
On the Prime there is BITSR(), 1 step.
Arno
05-21-2018, 09:11 PM
Post: #27
 Werner Senior Member Posts: 525 Joined: Dec 2013
RE: little math puzzle. Map 1 0 -1 to 1 0.5 0
DSE X
SQRT

Cheers, Werner
05-21-2018, 11:09 PM
Post: #28
 Gerson W. Barbosa Senior Member Posts: 1,343 Joined: Dec 2013
RE: little math puzzle. Map 1 0 -1 to 1 0.5 0
(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. ;-)

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

A longer and slower way here. :-)

Gerson.
05-21-2018, 11:15 PM
Post: #29
 Gerson W. Barbosa Senior Member Posts: 1,343 Joined: Dec 2013
RE: little math puzzle. Map 1 0 -1 to 1 0.5 0
(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-22-2018, 12:15 AM
Post: #30
 Joe Horn Senior Member Posts: 1,674 Joined: Dec 2013
RE: little math puzzle. Map 1 0 -1 to 1 0.5 0
(05-21-2018 08:25 PM)Gerson W. Barbosa Wrote:  hp 33s:

2 INT/

The same idea in RPL is 2 IQUOT.

<0|ɸ|0>
-Joe-
05-22-2018, 05:59 AM
Post: #31
 Dieter Senior Member Posts: 2,397 Joined: Dec 2013
RE: little math puzzle. Map 1 0 -1 to 1 0.5 0
(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
 « Next Oldest | Next Newest »

User(s) browsing this thread: 1 Guest(s)