Brian Brazil 4c8173acac Use timestamp of a sample in deriv() to avoid FP issues (#2958)
With the squaring of the timestamp, we run into the
limitations of the 53bit mantissa for a 64bit float.

By subtracting away a timestamp of one of the samples (which is how the
intercept is used) we avoid this issue in practice as it's unlikely
that it is used over a very long time range.

Fixes #2674
2017-08-07 17:15:38 +01:00
..
2016-04-29 22:50:24 +02:00
2017-07-18 13:58:00 +01:00
2017-07-18 13:58:00 +01:00
2016-11-21 14:42:45 +00:00
2015-08-26 12:44:46 +02:00