


Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t



Bits error versus a



Bits error versus b



Bits error versus c
Initial program 4.1
rmApplied *-un-lft-identity4.1
Applied prod-diff22.5
Simplified20.5
Simplified1.9
Final simplification1.9
herbie shell --seed 2019022 +o rules:numerics
(FPCore (x y z t a b c)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2"
(/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
Time bar (total: 50.1s)Debug log
| 74.0ms | 262× | body | 80 | nan |
| 55.0ms | 256× | body | 80 | valid |
| 283.0ms | (/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 2.7b
Found 4 expressions with local error:
| 5.2b | (/ (* z (sqrt (+ t a))) t) |
| 1.9b | (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))) |
| 0.3b | (/ 2.0 (* t 3.0)) |
| 0.2b | (* z (sqrt (+ t a))) |
| 30× | associate--r+ |
| 28× | prod-diff |
| 22× | add-cube-cbrt |
| 22× | *-un-lft-identity |
| 22× | add-sqr-sqrt |
| 20× | frac-sub |
| 15× | distribute-lft-in |
| 15× | distribute-rgt-in |
| 10× | div-inv |
| 9× | flip-- |
| 9× | flip3-- |
| 8× | associate-*r/ |
| 8× | frac-times |
| 6× | add-log-exp |
| 6× | associate-*r* |
| 5× | flip-+ |
| 5× | flip3-+ |
| 4× | log1p-expm1-u |
| 4× | add-exp-log |
| 4× | sqrt-div |
| 4× | fma-neg |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | sqrt-prod |
| 3× | sub-neg |
| 2× | associate-/l/ |
| 2× | associate--l+ |
| 2× | associate-*l/ |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | associate-/l* |
| 1× | *-commutative |
| 1× | diff-log |
| 1× | associate-/r* |
| 11.0ms | (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))) |
| 4.0ms | (/ (* z (sqrt (+ t a))) t) |
| 2.0ms | (* z (sqrt (+ t a))) |
| 0.0ms | (/ 2.0 (* t 3.0)) |
| 155.0ms | (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))) |
| 50.0ms | (/ (* z (sqrt (+ t a))) t) |
| 41.0ms | (* z (sqrt (+ t a))) |
| 12.0ms | (/ 2.0 (* t 3.0)) |
| 662.0ms | (* t (* (+ b c) (* (- a (/ 5.0 6.0)) (* t 3.0)))) |
| 662.0ms | (- (* (* z (sqrt (+ t a))) (* (+ (* b b) (+ (* c c) (* b c))) (* (+ (* a a) (- (* (/ 5.0 6.0) (/ 5.0 6.0)) (* a (/ 5.0 6.0)))) (* t 3.0)))) (* t (* (- (pow b 3) (pow c 3)) (- (* (+ (pow a 3) (pow (/ 5.0 6.0) 3)) (* t 3.0)) (* (+ (* a a) (- (* (/ 5.0 6.0) (/ 5.0 6.0)) (* a (/ 5.0 6.0)))) 2.0))))) |
| 558.0ms | (* (- b c) (fma (- (sqrt (/ 2.0 (* t 3.0)))) (sqrt (/ 2.0 (* t 3.0))) (* (sqrt (/ 2.0 (* t 3.0))) (sqrt (/ 2.0 (* t 3.0)))))) |
| 532.0ms | (- (* (* z (sqrt (+ t a))) (* (+ (* b b) (+ (* c c) (* b c))) (+ (* (+ a (/ 5.0 6.0)) (+ a (/ 5.0 6.0))) (+ (* (/ 2.0 (* t 3.0)) (/ 2.0 (* t 3.0))) (* (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))))) (* t (* (- (pow b 3) (pow c 3)) (- (pow (+ a (/ 5.0 6.0)) 3) (pow (/ 2.0 (* t 3.0)) 3))))) |
| 521.0ms | (* (fma (- (sqrt (/ 2.0 (* t 3.0)))) (sqrt (/ 2.0 (* t 3.0))) (* (sqrt (/ 2.0 (* t 3.0))) (sqrt (/ 2.0 (* t 3.0))))) (- b c)) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 4.6b | (* (/ z t) (sqrt (+ a t))) |
| 1.3b | (fma (- c b) (- (+ (/ 5.0 6.0) a) (/ 2.0 (* t 3.0))) (* (/ z t) (sqrt (+ a t)))) |
| 0.3b | (/ 2.0 (* t 3.0)) |
| 0.0b | (- (+ (/ 5.0 6.0) a) (/ 2.0 (* t 3.0))) |
| 17× | *-un-lft-identity |
| 17× | add-sqr-sqrt |
| 15× | add-cube-cbrt |
| 12× | prod-diff |
| 6× | add-log-exp |
| 6× | add-exp-log |
| 6× | associate-*r* |
| 6× | add-cbrt-cube |
| 6× | pow1 |
| 5× | div-inv |
| 4× | log1p-expm1-u |
| 4× | associate-*l* |
| 4× | sqrt-div |
| 4× | expm1-log1p-u |
| 3× | flip-+ |
| 3× | sqrt-prod |
| 3× | fma-neg |
| 3× | flip3-+ |
| 2× | frac-sub |
| 2× | associate-*r/ |
| 2× | frac-times |
| 1× | difference-of-squares |
| 1× | distribute-lft-out-- |
| 1× | flip-- |
| 1× | fma-udef |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | associate--l+ |
| 1× | prod-exp |
| 1× | associate-*l/ |
| 1× | pow-prod-down |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | associate-/r* |
| 1× | clear-num |
| 17.0ms | (- (+ (/ 5.0 6.0) a) (/ 2.0 (* t 3.0))) |
| 7.0ms | (* (/ z t) (sqrt (+ a t))) |
| 0.0ms | (/ 2.0 (* t 3.0)) |
| 0.0ms | (fma (- c b) (- (+ (/ 5.0 6.0) a) (/ 2.0 (* t 3.0))) (* (/ z t) (sqrt (+ a t)))) |
| 104.0ms | (fma (- c b) (- (+ (/ 5.0 6.0) a) (/ 2.0 (* t 3.0))) (* (/ z t) (sqrt (+ a t)))) |
| 59.0ms | (* (/ z t) (sqrt (+ a t))) |
| 19.0ms | (- (+ (/ 5.0 6.0) a) (/ 2.0 (* t 3.0))) |
| 10.0ms | (/ 2.0 (* t 3.0)) |
| 495.0ms | (* (* (* (/ z t) (/ z t)) (/ z t)) (* (* (sqrt (+ a t)) (sqrt (+ a t))) (sqrt (+ a t)))) |
| 337.0ms | (fma (sqrt (+ (/ 5.0 6.0) a)) (sqrt (+ (/ 5.0 6.0) a)) (- (* (/ 1 (* t 3.0)) 2.0))) |
| 291.0ms | (fma 1 (+ (/ 5.0 6.0) a) (- (* (/ 1 (* t 3.0)) 2.0))) |
| 281.0ms | (fma 1 (+ (/ 5.0 6.0) a) (- (* (/ 2.0 (* t 3.0)) 1))) |
| 269.0ms | (fma (* (cbrt (+ (/ 5.0 6.0) a)) (cbrt (+ (/ 5.0 6.0) a))) (cbrt (+ (/ 5.0 6.0) a)) (- (* (/ 1 (* t 3.0)) 2.0))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 3.9b | (fma (* z (sqrt (+ t a))) (/ 1 t) (- (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))) |
| 0.3b | (/ 2.0 (* t 3.0)) |
| 0.2b | (* z (sqrt (+ t a))) |
| 0.1b | (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))) |
| 24× | prod-diff |
| 24× | *-un-lft-identity |
| 24× | add-sqr-sqrt |
| 22× | add-cube-cbrt |
| 15× | distribute-lft-in |
| 15× | distribute-rgt-in |
| 11× | associate-*r* |
| 8× | flip-- |
| 8× | flip3-- |
| 8× | frac-times |
| 7× | div-inv |
| 6× | frac-sub |
| 6× | add-exp-log |
| 6× | associate-*r/ |
| 6× | add-cbrt-cube |
| 6× | pow1 |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | flip-+ |
| 4× | flip3-+ |
| 4× | expm1-log1p-u |
| 3× | sqrt-prod |
| 3× | associate-*l* |
| 2× | *-commutative |
| 2× | associate--l+ |
| 2× | associate-*l/ |
| 2× | sqrt-div |
| 2× | sub-neg |
| 1× | difference-of-squares |
| 1× | distribute-lft-out-- |
| 1× | fma-udef |
| 1× | cbrt-unprod |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | frac-2neg |
| 1× | associate-/r* |
| 1× | clear-num |
| 24.0ms | (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))) |
| 4.0ms | (* z (sqrt (+ t a))) |
| 1.0ms | (/ 2.0 (* t 3.0)) |
| 0.0ms | (fma (* z (sqrt (+ t a))) (/ 1 t) (- (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))) |
| 196.0ms | (fma (* z (sqrt (+ t a))) (/ 1 t) (- (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))) |
| 61.0ms | (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))) |
| 36.0ms | (* z (sqrt (+ t a))) |
| 7.0ms | (/ 2.0 (* t 3.0)) |
| 664.0ms | (* (+ (* b b) (+ (* c c) (* b c))) (* (- a (/ 5.0 6.0)) (* t 3.0))) |
| 573.0ms | (* (+ b c) (* (+ (* a a) (- (* (/ 5.0 6.0) (/ 5.0 6.0)) (* a (/ 5.0 6.0)))) (* t 3.0))) |
| 514.0ms | (* (fma (- (sqrt (/ 2.0 (* t 3.0)))) (sqrt (/ 2.0 (* t 3.0))) (* (sqrt (/ 2.0 (* t 3.0))) (sqrt (/ 2.0 (* t 3.0))))) (- b c)) |
| 495.0ms | (* (fma (- (sqrt (/ 2.0 (* t 3.0)))) (sqrt (/ 2.0 (* t 3.0))) (* (sqrt (/ 2.0 (* t 3.0))) (sqrt (/ 2.0 (* t 3.0))))) (- b c)) |
| 485.0ms | (* (- (pow b 3) (pow c 3)) (- (* (- (* a a) (* (/ 5.0 6.0) (/ 5.0 6.0))) (* t 3.0)) (* (- a (/ 5.0 6.0)) 2.0))) |
2 alts after pruning (0 fresh and 2 done)
Merged error: 0b
0% (1.8b remaining)
Error of 1.9b against oracle of 0.2b and baseline of 1.9b
| 3.3s | 8000× | body | 80 | valid |
| 2.2s | 7953× | body | 80 | nan |