Average Error: 4.0 → 4.0
Time: 979.0ms
Precision: binary64
\[a + \frac{b \cdot c}{d}\]
\[a + \frac{b \cdot c}{d}\]
a + \frac{b \cdot c}{d}
a + \frac{b \cdot c}{d}
double code(double a, double b, double c, double d) {
	return ((double) (a + ((double) (((double) (b * c)) / d))));
}
double code(double a, double b, double c, double d) {
	return ((double) (a + ((double) (((double) (b * c)) / d))));
}

Error

Bits error versus a

Bits error versus b

Bits error versus c

Bits error versus d

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 4.0

    \[a + \frac{b \cdot c}{d}\]
  2. Final simplification4.0

    \[\leadsto a + \frac{b \cdot c}{d}\]

Reproduce

herbie shell --seed 2020152 
(FPCore (a b c d)
  :name "(+ a (/ (* b c) d))"
  :precision binary64
  (+ a (/ (* b c) d)))