Hello,
Using the y-list is ok as long as you don’t need to x-positions of the points (or when they are evenly placed like here).
The general case (with BPF) fails in some particular cases due to floating point approximations.
I think the attached fix will solve it in this particular case. It uses double-float precision intead of single float.
(put the lisp file in OM 6.8/patches/)
[Here, we want 27 points between 0 an 1000, the “step” of the result is 1000/26 = 38.46154 (in single float approx.) The 27th point (26x38.46154=1000.00007) is then > 1000 and not included in the result. In double float precision, the step would be 38.46153846153846 and the 27th point is 1000.]
om-sample-double-precsision.lisp (2.24 KB)