Average Error: 0.0 → 0.0
Time: 4.3s
Precision: 64
$\left({x}^{2} - {x}^{5}\right) + 0.1000000000000000055511151231257827021182$
$\left({x}^{2} - {x}^{5}\right) + 0.1000000000000000055511151231257827021182$
\left({x}^{2} - {x}^{5}\right) + 0.1000000000000000055511151231257827021182
\left({x}^{2} - {x}^{5}\right) + 0.1000000000000000055511151231257827021182
double f(double x) {
double r25087663 = x;
double r25087664 = 2.0;
double r25087665 = pow(r25087663, r25087664);
double r25087666 = 5.0;
double r25087667 = pow(r25087663, r25087666);
double r25087668 = r25087665 - r25087667;
double r25087669 = 0.1;
double r25087670 = r25087668 + r25087669;
return r25087670;
}


double f(double x) {
double r25087671 = x;
double r25087672 = 2.0;
double r25087673 = pow(r25087671, r25087672);
double r25087674 = 5.0;
double r25087675 = pow(r25087671, r25087674);
double r25087676 = r25087673 - r25087675;
double r25087677 = 0.1;
double r25087678 = r25087676 + r25087677;
return r25087678;
}



Try it out

Results

 In Out
Enter valid numbers for all inputs

Derivation

1. Initial program 0.0

$\left({x}^{2} - {x}^{5}\right) + 0.1000000000000000055511151231257827021182$
2. Final simplification0.0

$\leadsto \left({x}^{2} - {x}^{5}\right) + 0.1000000000000000055511151231257827021182$

Reproduce

herbie shell --seed 1
(FPCore (x)
:name "pow(x,2)-pow(x,5)+0.1"
(+ (- (pow x 2.0) (pow x 5.0)) 0.1))