Average Error: 0.0 → 0.0
Time: 1.1s
Precision: binary64
Cost: 320
\[\frac{x + 16}{116}\]
\[\frac{x + 16}{116}\]
\frac{x + 16}{116}
\frac{x + 16}{116}
(FPCore (x) :precision binary64 (/ (+ x 16.0) 116.0))
(FPCore (x) :precision binary64 (/ (+ x 16.0) 116.0))
double code(double x) {
	return (x + 16.0) / 116.0;
}
double code(double x) {
	return (x + 16.0) / 116.0;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Alternatives

Alternative 1
Error1.3
Cost520
\[\begin{array}{l} \mathbf{if}\;x \leq -16.151941589256186 \lor \neg \left(x \leq 16.107876204531387\right):\\ \;\;\;\;x \cdot 0.008620689655172414\\ \mathbf{else}:\\ \;\;\;\;0.13793103448275862\\ \end{array}\]
Alternative 2
Error31.5
Cost64
\[0.13793103448275862\]
Alternative 3
Error57.7
Cost64
\[1\]

Error

Derivation

  1. Initial program 0.0

    \[\frac{x + 16}{116}\]
  2. Simplified0.0

    \[\leadsto \color{blue}{\frac{x + 16}{116}}\]
  3. Final simplification0.0

    \[\leadsto \frac{x + 16}{116}\]

Reproduce

herbie shell --seed 2021044 
(FPCore (x)
  :name "Data.Colour.CIE:cieLAB from colour-2.3.3, B"
  :precision binary64
  (/ (+ x 16.0) 116.0))