Average Error: 0.1 → 0.1
Time: 1.8s
Precision: binary64
\[\left(\left(\left(27 \cdot {x}^{4} + 1792 \cdot {x}^{3}\right) + 2592 \cdot {x}^{2}\right) - 324 \cdot x\right) - 243\]
\[\left(\left(\left(27 \cdot {x}^{4} + 1792 \cdot {x}^{3}\right) + 2592 \cdot {x}^{2}\right) - 324 \cdot x\right) - 243\]
\left(\left(\left(27 \cdot {x}^{4} + 1792 \cdot {x}^{3}\right) + 2592 \cdot {x}^{2}\right) - 324 \cdot x\right) - 243
\left(\left(\left(27 \cdot {x}^{4} + 1792 \cdot {x}^{3}\right) + 2592 \cdot {x}^{2}\right) - 324 \cdot x\right) - 243
double code(double x) {
	return ((double) (((double) (((double) (((double) (((double) (27.0 * ((double) pow(x, 4.0)))) + ((double) (1792.0 * ((double) pow(x, 3.0)))))) + ((double) (2592.0 * ((double) pow(x, 2.0)))))) - ((double) (324.0 * x)))) - 243.0));
}
double code(double x) {
	return ((double) (((double) (((double) (((double) (((double) (27.0 * ((double) pow(x, 4.0)))) + ((double) (1792.0 * ((double) pow(x, 3.0)))))) + ((double) (2592.0 * ((double) pow(x, 2.0)))))) - ((double) (324.0 * x)))) - 243.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(27 \cdot {x}^{4} + 1792 \cdot {x}^{3}\right) + 2592 \cdot {x}^{2}\right) - 324 \cdot x\right) - 243\]
  2. Final simplification0.1

    \[\leadsto \left(\left(\left(27 \cdot {x}^{4} + 1792 \cdot {x}^{3}\right) + 2592 \cdot {x}^{2}\right) - 324 \cdot x\right) - 243\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x)
  :name "(- (- (+ (+ (* 27 (pow x 4)) (* 1792 (pow x 3))) (* 2592 (pow x 2))) (* 324 x)) 243)"
  :precision binary64
  (- (- (+ (+ (* 27.0 (pow x 4.0)) (* 1792.0 (pow x 3.0))) (* 2592.0 (pow x 2.0))) (* 324.0 x)) 243.0))