


Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t
Results
if (/ y z) < -5.897662964381415e+305 or -2.537105397623105e-218 < (/ y z) < 1.4297097965547508e-295Initial program 22.4
Simplified0.2
rmApplied associate-*r/0.3
rmApplied associate-/l*0.2
if -5.897662964381415e+305 < (/ y z) < -2.537105397623105e-218 or 1.4297097965547508e-295 < (/ y z) Initial program 11.3
Simplified8.0
rmApplied div-inv8.0
Applied associate-*r*7.7
rmApplied pow17.7
Applied pow17.7
Applied pow-prod-down7.7
Simplified1.9
Final simplification1.5
herbie shell --seed 2019016 +o rules:numerics
(FPCore (x y z t)
:name "Graphics.Rendering.Chart.Backend.Diagrams:calcFontMetrics from Chart-diagrams-1.5.1"
(* x (/ (* (/ y z) t) t)))
Time bar (total: 4.2s)Debug log
| 315× | (pre true 80) |
| 315× | (body real 80) |
| 296.0ms | (* x (/ (* (/ y z) t) t)) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.3b
Found 1 expressions with local error:
| 7.0b | (* y (/ x z)) |
| 4× | associate-*r* |
| 2× | add-cube-cbrt |
| 2× | *-un-lft-identity |
| 2× | add-sqr-sqrt |
| 1× | add-log-exp |
| 1× | div-inv |
| 1× | log1p-expm1-u |
| 1× | *-commutative |
| 1× | add-exp-log |
| 1× | associate-*r/ |
| 1× | add-cbrt-cube |
| 1× | pow1 |
| 1× | expm1-log1p-u |
| 1.0ms | (* y (/ x z)) |
| 14.0ms | (* y (/ x z)) |
| 11.0ms | (/ (* x y) z) |
| 9.0ms | (/ (* x y) z) |
| 8.0ms | (/ (* x y) z) |
| 3.0ms | (/ 1 z) |
| 2.0ms | (cbrt (/ x z)) |
7 alts after pruning (6 fresh and 1 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 5.4b | (/ (* y x) z) |
| 1× | add-log-exp |
| 1× | associate-/l* |
| 1× | div-inv |
| 1× | log1p-expm1-u |
| 1× | add-cube-cbrt |
| 1× | add-exp-log |
| 1× | add-cbrt-cube |
| 1× | *-un-lft-identity |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | pow1 |
| 1× | expm1-log1p-u |
| 1× | add-sqr-sqrt |
| 2.0ms | (/ (* y x) z) |
| 17.0ms | (/ (* y x) z) |
| 11.0ms | (/ (* x y) z) |
| 11.0ms | (/ (* x y) z) |
| 10.0ms | (/ (* x y) z) |
6 alts after pruning (5 fresh and 1 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 5.4b | (* (* y x) (/ 1 z)) |
| 4× | associate-*r* |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | pow1 |
| 2× | add-cube-cbrt |
| 2× | *-un-lft-identity |
| 2× | add-sqr-sqrt |
| 1× | add-log-exp |
| 1× | div-inv |
| 1× | log1p-expm1-u |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | un-div-inv |
| 1× | associate-*r/ |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | associate-*l* |
| 1× | expm1-log1p-u |
| 7.0ms | (* (* y x) (/ 1 z)) |
| 21.0ms | (* (* y x) (/ 1 z)) |
| 477.0ms | (* (* (* (* y x) (* y x)) (* y x)) (* (* (/ 1 z) (/ 1 z)) (/ 1 z))) |
| 60.0ms | (+ (log (* y x)) (log (/ 1 z))) |
| 31.0ms | (* (* y x) (/ 1 z)) |
| 11.0ms | (/ (* x y) z) |
| 10.0ms | (/ (* x y) z) |
6 alts after pruning (5 fresh and 1 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 5.2b | (/ x (/ z y)) |
| 4× | associate-/r* |
| 2× | div-inv |
| 2× | add-cube-cbrt |
| 2× | *-un-lft-identity |
| 2× | add-sqr-sqrt |
| 1× | add-log-exp |
| 1× | log1p-expm1-u |
| 1× | associate-/r/ |
| 1× | add-exp-log |
| 1× | add-cbrt-cube |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | pow1 |
| 1× | expm1-log1p-u |
| 1.0ms | (/ x (/ z y)) |
| 24.0ms | (/ x (/ z y)) |
| 13.0ms | (/ (* x y) z) |
| 10.0ms | (/ (* x y) z) |
| 10.0ms | (/ (* x y) z) |
| 2.0ms | (/ 1 y) |
| 2.0ms | (cbrt (/ z y)) |
6 alts after pruning (4 fresh and 2 done)
Merged error: 0.0b
74.4% (1.5b remaining)
Error of 1.5b against oracle of 0.0b and baseline of 5.8b
| 9609× | (pre true 80) |
| 9609× | (body real 80) |