



Bits error versus t
Results
| Original | 61.8 |
|---|---|
| Target | 50.6 |
| Herbie | 0.3 |
Initial program 61.8
Simplified0.4
rmApplied associate-*l*0.3
Final simplification0.3
herbie shell --seed 2019016
(FPCore (t)
:name "fma_test1"
:pre (<= 0.9 t 1.1)
:herbie-target
(fma (+ 1 (* t 2e-16)) (+ 1 (* t 2e-16)) (- -1 (* 2 (* t 2e-16))))
(+ (* (+ 1 (* t 2e-16)) (+ 1 (* t 2e-16))) (- -1 (* 2 (* t 2e-16)))))
Time bar (total: 5.3s)Debug log
| 256× | (pre true 80) |
| 191× | (body real 160) |
| 65× | (body real 320) |
| 1.3s | (+ (* (+ 1 (* t 2e-16)) (+ 1 (* t 2e-16))) (- -1 (* 2 (* t 2e-16)))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.5b
Found 1 expressions with local error:
| 0.5b | (* (* 2e-16 t) (* 2e-16 t)) |
| 6× | pow1 |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 1× | add-log-exp |
| 1× | cbrt-unprod |
| 1× | add-cube-cbrt |
| 1× | pow-prod-up |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | associate-*l* |
| 1× | associate-*r* |
| 1× | pow-plus |
| 1× | *-un-lft-identity |
| 1× | add-sqr-sqrt |
| 1× | pow2 |
| 7.0ms | (* (* 2e-16 t) (* 2e-16 t)) |
| 20.0ms | (* (* 2e-16 t) (* 2e-16 t)) |
| 599.0ms | (* (* (* (* 2e-16 t) (* 2e-16 t)) (* 2e-16 t)) (* (* (* 2e-16 t) (* 2e-16 t)) (* 2e-16 t))) |
| 13.0ms | (+ (log (* 2e-16 t)) (log (* 2e-16 t))) |
| 9.0ms | (* (* 2e-16 t) (* 2e-16 t)) |
| 4.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 4.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0.1b
Found 2 expressions with local error:
| 0.2b | (* 2e-16 (* t (* 2e-16 t))) |
| 0.2b | (* t (* 2e-16 t)) |
| 2× | add-log-exp |
| 2× | add-cube-cbrt |
| 2× | *-commutative |
| 2× | add-exp-log |
| 2× | associate-*r* |
| 2× | add-cbrt-cube |
| 2× | *-un-lft-identity |
| 2× | pow1 |
| 2× | add-sqr-sqrt |
| 2.0ms | (* 2e-16 (* t (* 2e-16 t))) |
| 1.0ms | (* t (* 2e-16 t)) |
| 22.0ms | (* 2e-16 (* t (* 2e-16 t))) |
| 21.0ms | (* t (* 2e-16 t)) |
| 7.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 7.0ms | (* 2e-16 (pow t 2)) |
| 7.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 7.0ms | (* 2e-16 (pow t 2)) |
| 7.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
7 alts after pruning (5 fresh and 2 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 0.3b | (* 3.9999999999999997e-32 (pow t 2)) |
| 4× | associate-*r* |
| 2× | add-cube-cbrt |
| 2× | *-un-lft-identity |
| 2× | add-sqr-sqrt |
| 1× | add-log-exp |
| 1× | unpow2 |
| 1× | *-commutative |
| 1× | add-exp-log |
| 1× | add-cbrt-cube |
| 1× | pow1 |
| 2.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 19.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 7.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 7.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 4.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 3.0ms | (cbrt (pow t 2)) |
| 3.0ms | (sqrt (pow t 2)) |
7 alts after pruning (4 fresh and 3 done)
Merged error: 0.0b
Found 2 expressions with local error:
| 0.3b | (* (* (* 2e-16 t) 2e-16) t) |
| 0.2b | (* (* 2e-16 t) 2e-16) |
| 2× | add-log-exp |
| 2× | add-cube-cbrt |
| 2× | *-commutative |
| 2× | add-exp-log |
| 2× | associate-*l* |
| 2× | add-cbrt-cube |
| 2× | *-un-lft-identity |
| 2× | pow1 |
| 2× | add-sqr-sqrt |
| 12.0ms | (* (* (* 2e-16 t) 2e-16) t) |
| 4.0ms | (* (* 2e-16 t) 2e-16) |
| 20.0ms | (* (* (* 2e-16 t) 2e-16) t) |
| 12.0ms | (* (* 2e-16 t) 2e-16) |
| 7.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 7.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 7.0ms | (* 3.9999999999999997e-32 (pow t 2)) |
| 3.0ms | (* 3.9999999999999997e-32 t) |
| 2.0ms | (* 3.9999999999999997e-32 t) |
8 alts after pruning (4 fresh and 4 done)
Merged error: 0.0b
0% (0.3b remaining)
Error of 0.3b against oracle of 0.0b and baseline of 0.3b
| 8000× | (pre true 80) |
| 6020× | (body real 160) |
| 1980× | (body real 320) |