



Bits error versus a




Bits error versus b
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied difference-of-squares0.0
Final simplification0.0
herbie shell --seed 2019010 +o rules:numerics
(FPCore (a b)
:name "Difference of squares"
:herbie-target
(* (+ a b) (- a b))
(- (* a a) (* b b)))
Time bar (total: 4.8s)Debug log
| 12.0ms | (- (* a a) (* b b)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 0.0b | (- (* a a) (* b b)) |
| 3× | add-log-exp |
| 1× | difference-of-squares |
| 1× | flip-- |
| 1× | log1p-expm1-u |
| 1× | add-cube-cbrt |
| 1× | add-exp-log |
| 1× | prod-diff |
| 1× | diff-log |
| 1× | fma-neg |
| 1× | add-cbrt-cube |
| 1× | flip3-- |
| 1× | *-un-lft-identity |
| 1× | sub-neg |
| 1× | pow1 |
| 1× | expm1-log1p-u |
| 1× | add-sqr-sqrt |
| 2.0ms | (- (* a a) (* b b)) |
| 24.0ms | (- (* a a) (* b b)) |
| 21.0ms | (/ (exp (* a a)) (exp (* b b))) |
| 16.0ms | (fma a a (- (* b b))) |
| 11.0ms | (- (pow a 2) (pow b 2)) |
| 11.0ms | (- (pow a 2) (pow b 2)) |
| 5.0ms | (- (pow a 2) (pow b 2)) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0b
Found 1 expressions with local error:
| 0.0b | (* (+ a b) (- a b)) |
| 4× | frac-times |
| 3× | flip-- |
| 3× | flip-+ |
| 3× | add-cube-cbrt |
| 3× | add-exp-log |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 3× | add-cbrt-cube |
| 3× | flip3-- |
| 3× | flip3-+ |
| 3× | *-un-lft-identity |
| 3× | pow1 |
| 3× | add-sqr-sqrt |
| 2× | associate-*r/ |
| 2× | associate-*l/ |
| 2× | distribute-lft-in |
| 2× | sub-neg |
| 2× | distribute-rgt-in |
| 1× | add-log-exp |
| 1× | log1p-expm1-u |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | expm1-log1p-u |
| 6.0ms | (* (+ a b) (- a b)) |
| 23.0ms | (* (+ a b) (- a b)) |
| 477.0ms | (* (+ (* a a) (- (* b b) (* a b))) (+ (* a a) (+ (* b b) (* a b)))) |
| 371.0ms | (* (+ (pow a 3) (pow b 3)) (- (pow a 3) (pow b 3))) |
| 217.0ms | (* (- a b) (+ (* a a) (+ (* b b) (* a b)))) |
| 192.0ms | (* (+ (pow a 3) (pow b 3)) (- a b)) |
| 166.0ms | (* (- (* a a) (* b b)) (- (pow a 3) (pow b 3))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0b
Found 1 expressions with local error:
| 0.0b | (fma a a (- (* b b))) |
| 1× | add-log-exp |
| 1× | log1p-expm1-u |
| 1× | fma-udef |
| 1× | add-cube-cbrt |
| 1× | add-exp-log |
| 1× | add-cbrt-cube |
| 1× | *-un-lft-identity |
| 1× | pow1 |
| 1× | expm1-log1p-u |
| 1× | add-sqr-sqrt |
| 0.0ms | (fma a a (- (* b b))) |
| 34.0ms | (fma a a (- (* b b))) |
| 14.0ms | (- (pow a 2) (pow b 2)) |
| 11.0ms | (- (pow a 2) (pow b 2)) |
| 11.0ms | (- (pow a 2) (pow b 2)) |
2 alts after pruning (0 fresh and 2 done)
Merged error: 0b
0% (0.0b remaining)
Error of 0.0b against oracle of 0b and baseline of 0.0b