Average Error: 0.0 → 0.0
Time: 1.9s
Precision: binary64
\[\left(\left(a \cdot x + b \cdot x\right) + c \cdot x\right) + d \cdot x\]
\[\left(\left(a \cdot x + b \cdot x\right) + c \cdot x\right) + d \cdot x\]
\left(\left(a \cdot x + b \cdot x\right) + c \cdot x\right) + d \cdot x
\left(\left(a \cdot x + b \cdot x\right) + c \cdot x\right) + d \cdot x
double code(double a, double x, double b, double c, double d) {
	return ((double) (((double) (((double) (((double) (a * x)) + ((double) (b * x)))) + ((double) (c * x)))) + ((double) (d * x))));
}
double code(double a, double x, double b, double c, double d) {
	return ((double) (((double) (((double) (((double) (a * x)) + ((double) (b * x)))) + ((double) (c * x)))) + ((double) (d * x))));
}

Error

Bits error versus a

Bits error versus x

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 0.0

    \[\left(\left(a \cdot x + b \cdot x\right) + c \cdot x\right) + d \cdot x\]
  2. Final simplification0.0

    \[\leadsto \left(\left(a \cdot x + b \cdot x\right) + c \cdot x\right) + d \cdot x\]

Reproduce

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