


Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t
Results
if (/ y z) < -inf.0Initial program 60.0
Simplified0.3
if -inf.0 < (/ y z) < -4.868209975303927e-240 or 3.3270316362416e-317 < (/ y z) < 5.18146444823841e+203Initial program 9.6
Simplified8.2
Taylor expanded around -inf 8.9
rmApplied associate-/l*0.4
if -4.868209975303927e-240 < (/ y z) < 3.3270316362416e-317 or 5.18146444823841e+203 < (/ y z) Initial program 24.0
Simplified0.3
Taylor expanded around -inf 0.4
Final simplification0.4
herbie shell --seed 2019022 +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: 8.0s)Debug log
| 19.0ms | 300× | body | 80 | valid |
| 272.0ms | (* x (/ (* (/ y z) t) t)) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.8b
Found 1 expressions with local error:
| 5.2b | (* 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)) |
| 12.0ms | (* y (/ x z)) |
| 8.0ms | (/ (* x y) z) |
| 5.0ms | (/ (* x y) z) |
| 5.0ms | (/ (* x y) z) |
| 2.0ms | (/ 1 z) |
| 1.0ms | (cbrt (/ x z)) |
6 alts after pruning (5 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 13.4b | (cbrt (/ x z)) |
| 13.4b | (cbrt (/ x z)) |
| 13.4b | (cbrt (/ x z)) |
| 2.2b | (* y (* (cbrt (/ x z)) (cbrt (/ x z)))) |
| 12× | cbrt-prod |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 7× | cbrt-div |
| 7× | add-sqr-sqrt |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | add-exp-log |
| 4× | associate-*r/ |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | div-inv |
| 3× | pow1/3 |
| 1× | *-commutative |
| 1× | associate-*l/ |
| 1× | associate-*r* |
| 1× | frac-times |
| 4.0ms | (* y (* (cbrt (/ x z)) (cbrt (/ x z)))) |
| 1.0ms | (cbrt (/ x z)) |
| 0.0ms | (cbrt (/ x z)) |
| 0.0ms | (cbrt (/ x z)) |
| 95.0ms | (cbrt (/ x z)) |
| 81.0ms | (cbrt (/ x z)) |
| 67.0ms | (cbrt (/ x z)) |
| 67.0ms | (* y (* (cbrt (/ x z)) (cbrt (/ x z)))) |
| 335.0ms | (* (exp (* 1/3 (- (* 2 (log (/ -1 z))) (* 2 (log (/ -1 x)))))) y) |
| 219.0ms | (* y (exp (* 1/3 (- (* 2 (log (/ 1 z))) (* 2 (log (/ 1 x))))))) |
| 195.0ms | (* y (exp (* 1/3 (- (* 2 (log x)) (* 2 (log z)))))) |
| 175.0ms | (exp (* 1/3 (- (log (/ 1 z)) (log (/ 1 x))))) |
| 169.0ms | (exp (* 1/3 (- (log (/ 1 z)) (log (/ 1 x))))) |
7 alts after pruning (5 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 13.4b | (cbrt (/ x z)) |
| 13.4b | (cbrt (/ x z)) |
| 2.2b | (* y (* (* (cbrt x) (cbrt (/ 1 z))) (cbrt (/ x z)))) |
| 0.6b | (cbrt (/ 1 z)) |
| 12× | cbrt-prod |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 7× | cbrt-div |
| 7× | add-sqr-sqrt |
| 6× | associate-*r/ |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | div-inv |
| 3× | pow1/3 |
| 1× | *-commutative |
| 1× | associate-*l/ |
| 1× | associate-*r* |
| 1× | frac-times |
| 18.0ms | (* y (* (* (cbrt x) (cbrt (/ 1 z))) (cbrt (/ x z)))) |
| 1.0ms | (cbrt (/ x z)) |
| 1.0ms | (cbrt (/ 1 z)) |
| 1.0ms | (cbrt (/ x z)) |
| 260.0ms | (cbrt (/ 1 z)) |
| 94.0ms | (* y (* (* (cbrt x) (cbrt (/ 1 z))) (cbrt (/ x z)))) |
| 67.0ms | (cbrt (/ x z)) |
| 60.0ms | (cbrt (/ x z)) |
| 407.0ms | (* (pow (cbrt -1) 2) (* (exp (* 1/3 (- (* 2 (log (/ -1 z))) (* 2 (log (/ -1 x)))))) y)) |
| 217.0ms | (* y (exp (* 1/3 (- (* 2 (log (/ 1 z))) (* 2 (log (/ 1 x))))))) |
| 178.0ms | (* y (exp (* 1/3 (- (* 2 (log x)) (* 2 (log z)))))) |
| 170.0ms | (exp (* 1/3 (- (log (/ 1 z)) (log (/ 1 x))))) |
| 147.0ms | (exp (* 1/3 (- (log (/ 1 z)) (log (/ 1 x))))) |
7 alts after pruning (4 fresh and 3 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 6.1b | (/ (* x y) 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 | (/ (* x y) z) |
| 12.0ms | (/ (* x y) z) |
| 11.0ms | (/ (* x y) z) |
| 9.0ms | (/ (* x y) z) |
| 5.0ms | (/ (* x y) z) |
6 alts after pruning (3 fresh and 3 done)
Merged error: 0b
94.2% (0.4b remaining)
Error of 0.4b against oracle of 0.0b and baseline of 6.1b
| 1.1s | 9555× | body | 80 | valid |