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 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)