On Aug 5, 2016 2:13 AM, "Steven D'Aprano" <email@example.com> wrote:
> > x = [clamp(x[t], f(t), g(t)) for t in range(1_000_000)]
> > is perfectly plausible code.
> I have my doubts. Sure, you can write it, but what would you use it for?
> What's your use-case?
Looks like ordinary trend with error bounds to me. I can easily imagine writing that code is clamp is introduced.
And glad to see that Kahan explicitly supports my intuition on NaN not genetically infecting every operation... In fact that clamp(x, nan, nan) is explicitness x according to IEEE-754 2008... Not NaN.