Average Error: 0.5 → 0.5
Time: 488.0ms
Precision: binary64
\[\frac{\left(x \cdot 116 - 16\right) \cdot 27}{24389}\]
\[\frac{\left(x \cdot 116 - 16\right) \cdot 27}{24389}\]
\frac{\left(x \cdot 116 - 16\right) \cdot 27}{24389}
\frac{\left(x \cdot 116 - 16\right) \cdot 27}{24389}
double code(double x) {
	return ((double) (((double) (((double) (((double) (x * 116.0)) - 16.0)) * 27.0)) / 24389.0));
}
double code(double x) {
	return ((double) (((double) (((double) (((double) (x * 116.0)) - 16.0)) * 27.0)) / 24389.0));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.5

    \[\frac{\left(x \cdot 116 - 16\right) \cdot 27}{24389}\]
  2. Final simplification0.5

    \[\leadsto \frac{\left(x \cdot 116 - 16\right) \cdot 27}{24389}\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x)
  :name "(/ (* (- (* x 116) 16) 27) 24389)"
  :precision binary64
  (/ (* (- (* x 116.0) 16.0) 27.0) 24389.0))