


Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t



Bits error versus a



Bits error versus b
Results
if t < 8.105866356025745e-274 or 3.6483414341945934e-83 < t Initial program 1.6
rmApplied associate-/l*1.4
if 8.105866356025745e-274 < t < 3.6483414341945934e-83Initial program 3.7
rmApplied exp-diff10.4
Applied associate-*r/11.5
Applied associate-/l/11.5
Simplified10.1
Final simplification2.8
herbie shell --seed 2019010 +o rules:numerics
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2"
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
Time bar (total: 44.1s)Debug log
| 365.0ms | (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.9b
Found 4 expressions with local error:
| 1.5b | (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y) |
| 0.9b | (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b)) |
| 0.3b | (* y (log z)) |
| 0.1b | (* (- t 1.0) (log a)) |
| 8× | add-cube-cbrt |
| 8× | *-un-lft-identity |
| 8× | add-sqr-sqrt |
| 6× | add-exp-log |
| 6× | associate-*r* |
| 6× | add-cbrt-cube |
| 6× | pow1 |
| 5× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | expm1-log1p-u |
| 3× | exp-sum |
| 3× | associate-*l* |
| 3× | exp-prod |
| 2× | *-commutative |
| 2× | associate-*l/ |
| 2× | exp-diff |
| 1× | associate-/l/ |
| 1× | rem-exp-log |
| 1× | associate-/l* |
| 1× | flip-- |
| 1× | div-inv |
| 1× | cbrt-unprod |
| 1× | associate-*r/ |
| 1× | associate--l+ |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | flip3-- |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 32.0ms | (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b)) |
| 25.0ms | (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y) |
| 4.0ms | (* (- t 1.0) (log a)) |
| 1.0ms | (* y (log z)) |
| 216.0ms | (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y) |
| 143.0ms | (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b)) |
| 51.0ms | (* (- t 1.0) (log a)) |
| 32.0ms | (* y (log z)) |
| 417.0ms | (- (+ (* t (log -1)) (* 1.0 (log (/ -1 a)))) (+ (* t (log (/ -1 a))) (* 1.0 (log -1)))) |
| 335.0ms | (+ (* t (* (log a) (exp (- (* 1.0 (log a)))))) (+ (exp (- (* 1.0 (log a)))) (* (log z) (* (exp (- (* 1.0 (log a)))) y)))) |
| 234.0ms | (* (* (* (- t 1.0) (- t 1.0)) (- t 1.0)) (* (* (log a) (log a)) (log a))) |
| 219.0ms | (exp (* (cbrt (- (+ (* y (log z)) (* (- t 1.0) (log a))) b)) (cbrt (- (+ (* y (log z)) (* (- t 1.0) (log a))) b)))) |
| 210.0ms | (- (* 1.0 (log (/ 1 a))) (* t (log (/ 1 a)))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 1.4b | (/ x (/ y (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b)))) |
| 0.9b | (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b)) |
| 0.3b | (* y (log z)) |
| 0.1b | (* (- t 1.0) (log a)) |
| 9× | add-cube-cbrt |
| 9× | *-un-lft-identity |
| 9× | add-sqr-sqrt |
| 6× | add-exp-log |
| 6× | associate-*r* |
| 6× | add-cbrt-cube |
| 6× | pow1 |
| 5× | add-log-exp |
| 5× | associate-/r* |
| 4× | log1p-expm1-u |
| 4× | expm1-log1p-u |
| 3× | exp-sum |
| 3× | associate-*l* |
| 3× | exp-prod |
| 2× | div-inv |
| 2× | *-commutative |
| 2× | associate-/r/ |
| 2× | associate-*l/ |
| 2× | exp-diff |
| 1× | rem-exp-log |
| 1× | flip-- |
| 1× | cbrt-unprod |
| 1× | associate--l+ |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | flip3-- |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 35.0ms | (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b)) |
| 5.0ms | (/ x (/ y (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b)))) |
| 4.0ms | (* (- t 1.0) (log a)) |
| 1.0ms | (* y (log z)) |
| 197.0ms | (/ x (/ y (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b)))) |
| 111.0ms | (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b)) |
| 55.0ms | (* (- t 1.0) (log a)) |
| 49.0ms | (* y (log z)) |
| 324.0ms | (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b)) |
| 301.0ms | (- (+ (* t (log -1)) (* 1.0 (log (/ -1 a)))) (+ (* t (log (/ -1 a))) (* 1.0 (log -1)))) |
| 278.0ms | (+ (* t (* (log a) (exp (- (* 1.0 (log a)))))) (+ (exp (- (* 1.0 (log a)))) (* (log z) (* (exp (- (* 1.0 (log a)))) y)))) |
| 251.0ms | (* (- (* t t) (* 1.0 1.0)) (log a)) |
| 204.0ms | (- (+ (* y (log z)) (* (- t 1.0) (log a))) b) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 1.4b | (/ x (/ y (* (* (pow a (- 1.0)) (pow z y)) (exp (fma t (log a) (- b)))))) |
| 0.1b | (fma t (log a) (- b)) |
| 0.1b | (/ y (* (* (pow a (- 1.0)) (pow z y)) (exp (fma t (log a) (- b))))) |
| 0.0b | (* (pow a (- 1.0)) (pow z y)) |
| 10× | associate-*l/ |
| 8× | add-exp-log |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 7× | associate-/r* |
| 7× | add-sqr-sqrt |
| 6× | add-cbrt-cube |
| 5× | associate-/r/ |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | prod-exp |
| 4× | pow1 |
| 4× | pow-to-exp |
| 4× | expm1-log1p-u |
| 3× | pow-sub |
| 3× | div-inv |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 3× | pow-neg |
| 3× | neg-sub0 |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | fma-udef |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 10.0ms | (/ x (/ y (* (* (pow a (- 1.0)) (pow z y)) (exp (fma t (log a) (- b)))))) |
| 9.0ms | (/ y (* (* (pow a (- 1.0)) (pow z y)) (exp (fma t (log a) (- b))))) |
| 8.0ms | (* (pow a (- 1.0)) (pow z y)) |
| 0.0ms | (fma t (log a) (- b)) |
| 419.0ms | (/ x (/ y (* (* (pow a (- 1.0)) (pow z y)) (exp (fma t (log a) (- b)))))) |
| 230.0ms | (/ y (* (* (pow a (- 1.0)) (pow z y)) (exp (fma t (log a) (- b))))) |
| 170.0ms | (* (pow a (- 1.0)) (pow z y)) |
| 62.0ms | (fma t (log a) (- b)) |
| 311.0ms | (+ (* (pow (/ 1 (pow a 1.0)) 1.0) (* (log z) y)) (+ (* 1/2 (* (pow (/ 1 (pow a 1.0)) 1.0) (* (pow (log z) 2) (pow y 2)))) (pow (/ 1 (pow a 1.0)) 1.0))) |
| 296.0ms | (/ (* (exp (* -1 (* (log (/ 1 z)) y))) (* x (exp (- (+ b (* t (log (/ 1 a)))))))) (* a y)) |
| 221.0ms | (- (* t (log -1)) (+ (* t (log (/ -1 a))) b)) |
| 213.0ms | (* (* (pow a (- 1.0)) (pow z y)) (exp (fma t (log a) (- b)))) |
| 213.0ms | (cbrt (/ y (* (* (pow a (- 1.0)) (pow z y)) (exp (fma t (log a) (- b)))))) |
6 alts after pruning (5 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 1.4b | (/ x (* (/ y (* (* 1 (pow z y)) (exp (fma t (log a) (- b))))) (pow a 1.0))) |
| 0.1b | (fma t (log a) (- b)) |
| 0.0b | (* (/ y (* (* 1 (pow z y)) (exp (fma t (log a) (- b))))) (pow a 1.0)) |
| 0.0b | (/ y (* (* 1 (pow z y)) (exp (fma t (log a) (- b))))) |
| 7× | add-exp-log |
| 6× | add-cube-cbrt |
| 6× | add-cbrt-cube |
| 6× | *-un-lft-identity |
| 6× | add-sqr-sqrt |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | associate-*l* |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | div-inv |
| 3× | associate-*r* |
| 2× | prod-exp |
| 2× | associate-*l/ |
| 2× | frac-2neg |
| 2× | associate-/r* |
| 2× | clear-num |
| 1× | fma-udef |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | associate-/r/ |
| 1× | pow-to-exp |
| 14.0ms | (* (/ y (* (* 1 (pow z y)) (exp (fma t (log a) (- b))))) (pow a 1.0)) |
| 4.0ms | (/ y (* (* 1 (pow z y)) (exp (fma t (log a) (- b))))) |
| 1.0ms | (/ x (* (/ y (* (* 1 (pow z y)) (exp (fma t (log a) (- b))))) (pow a 1.0))) |
| 0.0ms | (fma t (log a) (- b)) |
| 573.0ms | (/ y (* (* 1 (pow z y)) (exp (fma t (log a) (- b))))) |
| 462.0ms | (/ x (* (/ y (* (* 1 (pow z y)) (exp (fma t (log a) (- b))))) (pow a 1.0))) |
| 412.0ms | (* (/ y (* (* 1 (pow z y)) (exp (fma t (log a) (- b))))) (pow a 1.0)) |
| 81.0ms | (fma t (log a) (- b)) |
| 749.0ms | (- (+ (* a (* y b)) (* a y)) (* a (* (log z) (pow y 2)))) |
| 346.0ms | (/ (* (exp (* -1 (* (log (/ 1 z)) y))) (* x (exp (- (+ b (* t (log (/ 1 a)))))))) (* a y)) |
| 300.0ms | (/ y (* (exp (* -1 (* (log (/ 1 z)) y))) (exp (- (+ b (* t (log (/ 1 a)))))))) |
| 282.0ms | (- y (+ (* t (* y (log a))) (* (log z) (pow y 2)))) |
| 248.0ms | (- (* t (log -1)) (+ (* t (log (/ -1 a))) b)) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0b
-62.3% (2.8b remaining)
Error of 2.8b against oracle of 0.0b and baseline of 1.7b