Post Reply 
Little explorations with HP calculators (no Prime)
04-01-2017, 11:45 PM
Post: #101
RE: Little explorations with the HP calculators
(03-31-2017 08:33 PM)pier4r Wrote:  What the function does is the following.
- Given this matrix http://i.imgur.com/moh6eSP.png
- produce a random value between 1 and 7225, call it curProbV
- from the first row to the last row of the matrix, check if curProbV is smaller that the element in the first column (I thought I could start from the bottom, but since curProbV is random, it would not matter).
- if you find that the value is smaller, take the third element in the row and return it.

Simple change the two coloumns (x will be -400, -375, -350, ...; and y=25, 75, 150, ...), and fit a function:

For example, this kind functions fits well(?), but you must to play with the constant values in each equation for the better fit:

an logistic model: (Max-Min)/(1+EXP(-X/F)), where Max~7225, Min~25, F~100 or
a periodic model: (Max-Min)/2×SIN(X/P×PI)+Aver, where P~850, Aver~3625.

Maybe you must to make a little modification on y values, for example shift the data -12.5 for better fit, or change the interval from -400...+400 to -425...+425, as you can see above.

Good luck! Smile
Csaba
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Little explorations with the HP calculators - Csaba Tizedes - 04-01-2017 11:45 PM



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