Average Error: 0.1 → 0.1
Time: 9.3s
Precision: 64
$\left(10 \cdot {x}^{2} + 2 \cdot x\right) + 1.1$
$\left(2 \cdot x + {x}^{2} \cdot 10\right) + 1.1$
\left(10 \cdot {x}^{2} + 2 \cdot x\right) + 1.1
\left(2 \cdot x + {x}^{2} \cdot 10\right) + 1.1
double f(double x) {
double r4227536 = 10.0;
double r4227537 = x;
double r4227538 = 2.0;
double r4227539 = pow(r4227537, r4227538);
double r4227540 = r4227536 * r4227539;
double r4227541 = r4227538 * r4227537;
double r4227542 = r4227540 + r4227541;
double r4227543 = 1.1;
double r4227544 = r4227542 + r4227543;
return r4227544;
}


double f(double x) {
double r4227545 = 2.0;
double r4227546 = x;
double r4227547 = r4227545 * r4227546;
double r4227548 = pow(r4227546, r4227545);
double r4227549 = 10.0;
double r4227550 = r4227548 * r4227549;
double r4227551 = r4227547 + r4227550;
double r4227552 = 1.1;
double r4227553 = r4227551 + r4227552;
return r4227553;
}



# Try it out

Results

 In Out
Enter valid numbers for all inputs

# Derivation

1. Initial program 0.1

$\left(10 \cdot {x}^{2} + 2 \cdot x\right) + 1.1$
2. Final simplification0.1

$\leadsto \left(2 \cdot x + {x}^{2} \cdot 10\right) + 1.1$

# Reproduce

herbie shell --seed 1
(FPCore (x)
:name "10*x^2+2*x+1.1"
(+ (+ (* 10 (pow x 2)) (* 2 x)) 1.1))