Mar-11-2019, 02:00 AM
Couldn't you kick it up a notch, so that all the values are integers? For example,
Or you could do what your last example implies:
x = np.linspace(0, a * h, h)
. It would require dividing by h elsewhere in your code, but it is doable.Or you could do what your last example implies:
x = [0, 0.25, 0.5, 0.75, 1.0]
, and then use the integers 0 through 4 for your indexes. You then translate the indexes using x.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures