Post Reply 
little math puzzle. Map 1 0 -1 to 1 0.5 0
05-21-2018, 02:33 PM
Post: #3
RE: little math puzzle. Map 1 0 -1 to 1 0.5 0
(05-21-2018 10:24 AM)pier4r Wrote:  Of course, the first approach is a "switch case" block. Other ideas? (note that the first range is scaled to the second, but one ending point stays the same)

The Xs are in arithmetic progression with d=-1 while the Ys have d=-0.5 so Y=X/2 plus a constant. As Y(0)=0.5 the constant is precisely 0.5 and so Y=X/2+0.5 which of course is the same solution as Thomas'.

The L.R. (Linear Regression) function on most any HP calc new or old would give you the solution at once (slope and intercept).

Regards.
V.
.

  
All My Articles & other Materials here:  Valentin Albillo's HP Collection
 
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: little math puzzle. Map 1 0 -1 to 1 0.5 0 - Valentin Albillo - 05-21-2018 02:33 PM



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