\left(a + b\right) \cdot \left(a + b\right)
{a}^{2} + \log \left({\left(e^{b}\right)}^{\left(b + 2 \cdot a\right)}\right)double f(double a, double b) {
double r95649 = a;
double r95650 = b;
double r95651 = r95649 + r95650;
double r95652 = r95651 * r95651;
return r95652;
}
double f(double a, double b) {
double r95653 = a;
double r95654 = 2.0;
double r95655 = pow(r95653, r95654);
double r95656 = b;
double r95657 = exp(r95656);
double r95658 = r95654 * r95653;
double r95659 = r95656 + r95658;
double r95660 = pow(r95657, r95659);
double r95661 = log(r95660);
double r95662 = r95655 + r95661;
return r95662;
}




Bits error versus a




Bits error versus b
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied distribute-lft-in0.0
Simplified0.0
Simplified0.0
Taylor expanded around 0 0.0
rmApplied add-log-exp0.0
Applied add-log-exp0.0
Applied sum-log0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020065
(FPCore (a b)
:name "Expression 4, p15"
:precision binary64
:pre (and (<= 5 a 10) (<= 0.0 b 0.001))
:herbie-target
(+ (+ (+ (* b a) (* b b)) (* b a)) (* a a))
(* (+ a b) (+ a b)))