e^{-\left(1 - x \cdot x\right)}e^{\left(-\sqrt{1}\right) \cdot \left(\sqrt{1} - x\right)} \cdot {\left(e^{-x}\right)}^{\left(\sqrt{1} - x\right)}double code(double x) {
return exp(-(1.0 - (x * x)));
}
double code(double x) {
return (exp((-sqrt(1.0) * (sqrt(1.0) - x))) * pow(exp(-x), (sqrt(1.0) - x)));
}



Bits error versus x
Results
Initial program 0.0
rmApplied add-sqr-sqrt0.0
Applied difference-of-squares0.0
Applied distribute-lft-neg-in0.0
Applied exp-prod0.0
rmApplied distribute-neg-in0.0
Applied exp-sum0.0
Applied unpow-prod-down0.0
rmApplied pow-exp0.0
Final simplification0.0
herbie shell --seed 2020079 +o rules:numerics
(FPCore (x)
:name "exp neg sub"
:precision binary64
(exp (- (- 1 (* x x)))))