Average Error: 0.1 → 0.1
Time: 1.1s
Precision: binary64
\[\left(\left(\left(\left(16 \cdot x\right) \cdot x\right) \cdot x\right) \cdot x - \left(48 \cdot x\right) \cdot x\right) + 12\]
\[\left(\left(\left(\left(16 \cdot x\right) \cdot x\right) \cdot x\right) \cdot x - \left(48 \cdot x\right) \cdot x\right) + 12\]
\left(\left(\left(\left(16 \cdot x\right) \cdot x\right) \cdot x\right) \cdot x - \left(48 \cdot x\right) \cdot x\right) + 12
\left(\left(\left(\left(16 \cdot x\right) \cdot x\right) \cdot x\right) \cdot x - \left(48 \cdot x\right) \cdot x\right) + 12
double code(double x) {
	return ((double) (((double) (((double) (((double) (((double) (((double) (16.0 * x)) * x)) * x)) * x)) - ((double) (((double) (48.0 * x)) * x)))) + 12.0));
}
double code(double x) {
	return ((double) (((double) (((double) (((double) (((double) (((double) (16.0 * x)) * x)) * x)) * x)) - ((double) (((double) (48.0 * x)) * x)))) + 12.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.1

    \[\left(\left(\left(\left(16 \cdot x\right) \cdot x\right) \cdot x\right) \cdot x - \left(48 \cdot x\right) \cdot x\right) + 12\]
  2. Final simplification0.1

    \[\leadsto \left(\left(\left(\left(16 \cdot x\right) \cdot x\right) \cdot x\right) \cdot x - \left(48 \cdot x\right) \cdot x\right) + 12\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x)
  :name "(+ (- (* (* (* (* 16 x) x) x) x) (* (* 48 x) x)) 12)"
  :precision binary64
  (+ (- (* (* (* (* 16.0 x) x) x) x) (* (* 48.0 x) x)) 12.0))