Average Error: 0.0 → 0.0
Time: 1.5min
Precision: binary64
\[\left(\left(x \cdot y + z \cdot t\right) + a \cdot b\right) + c \cdot i\]
\[x \cdot y + \left(z \cdot t + \left(a \cdot b + c \cdot i\right)\right)\]
\left(\left(x \cdot y + z \cdot t\right) + a \cdot b\right) + c \cdot i
x \cdot y + \left(z \cdot t + \left(a \cdot b + c \cdot i\right)\right)
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return ((double) (((double) (((double) (((double) (x * y)) + ((double) (z * t)))) + ((double) (a * b)))) + ((double) (c * i))));
}
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
	return ((double) (((double) (x * y)) + ((double) (((double) (z * t)) + ((double) (((double) (a * b)) + ((double) (c * i))))))));
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Bits error versus a

Bits error versus b

Bits error versus c

Bits error versus i

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\left(\left(x \cdot y + z \cdot t\right) + a \cdot b\right) + c \cdot i\]
  2. Simplified0.0

    \[\leadsto \color{blue}{x \cdot y + \left(z \cdot t + \left(a \cdot b + c \cdot i\right)\right)}\]
  3. Final simplification0.0

    \[\leadsto x \cdot y + \left(z \cdot t + \left(a \cdot b + c \cdot i\right)\right)\]

Reproduce

herbie shell --seed 2020199 
(FPCore (x y z t a b c i)
  :name "Linear.V4:$cdot from linear-1.19.1.3, C"
  :precision binary64
  (+ (+ (+ (* x y) (* z t)) (* a b)) (* c i)))