Average Error: 0.1 → 0.1
Time: 688.0ms
Precision: binary64
\[\frac{841}{108} \cdot x + \frac{4}{29}\]
\[7.787037037037037 \cdot x + 0.13793103448275862\]
\frac{841}{108} \cdot x + \frac{4}{29}
7.787037037037037 \cdot x + 0.13793103448275862
(FPCore (x) :precision binary64 (+ (* (/ 841.0 108.0) x) (/ 4.0 29.0)))
(FPCore (x)
 :precision binary64
 (+ (* 7.787037037037037 x) 0.13793103448275862))
double code(double x) {
	return ((841.0 / 108.0) * x) + (4.0 / 29.0);
}
double code(double x) {
	return (7.787037037037037 * x) + 0.13793103448275862;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[\frac{841}{108} \cdot x + \frac{4}{29}\]
  2. Simplified0.1

    \[\leadsto \color{blue}{7.787037037037037 \cdot x + 0.13793103448275862}\]
  3. Final simplification0.1

    \[\leadsto 7.787037037037037 \cdot x + 0.13793103448275862\]

Reproduce

herbie shell --seed 2020224 
(FPCore (x)
  :name "Data.Colour.CIE:cieLABView from colour-2.3.3, A"
  :precision binary64
  (+ (* (/ 841.0 108.0) x) (/ 4.0 29.0)))