


Bits error versus x



Bits error versus y



Bits error versus z



Bits error versus t



Bits error versus a
Results
Initial program 0.3
rmApplied add-cube-cbrt0.3
Applied log-prod0.3
Applied associate-+l+0.3
Final simplification0.3
herbie shell --seed 2019016
(FPCore (x y z t a)
:name "Numeric.SpecFunctions:logGammaL from math-functions-0.1.5.2"
(+ (- (+ (log (+ x y)) (log z)) t) (* (- a 0.5) (log t))))
Time bar (total: 37.4s)Debug log
| 2146× | (pre true 80) |
| 1888× | (body nan 80) |
| 258× | (body real 80) |
| 345.0ms | (+ (- (+ (log (+ x y)) (log z)) t) (* (- a 0.5) (log t))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.3b
Found 4 expressions with local error:
| 0.5b | (+ (log (+ x y)) (log z)) |
| 0.2b | (* (- a 0.5) (log t)) |
| 0.1b | (+ (- (+ (log (+ x y)) (log z)) t) (* (- a 0.5) (log t))) |
| 0.0b | (- (+ (log (+ x y)) (log z)) t) |
| 10× | *-un-lft-identity |
| 7× | add-cube-cbrt |
| 7× | pow1 |
| 7× | add-sqr-sqrt |
| 6× | add-log-exp |
| 6× | flip-- |
| 6× | add-exp-log |
| 6× | associate-*l/ |
| 6× | add-cbrt-cube |
| 6× | flip3-- |
| 6× | associate-+l+ |
| 5× | associate-+l- |
| 4× | flip-+ |
| 4× | frac-add |
| 4× | flip3-+ |
| 4× | log-div |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 3× | log-prod |
| 2× | distribute-lft-out |
| 2× | associate--l+ |
| 2× | sub-neg |
| 2× | sum-log |
| 2× | +-commutative |
| 2× | associate--l- |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | log-pow |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 123.0ms | (+ (- (+ (log (+ x y)) (log z)) t) (* (- a 0.5) (log t))) |
| 25.0ms | (- (+ (log (+ x y)) (log z)) t) |
| 8.0ms | (+ (log (+ x y)) (log z)) |
| 7.0ms | (* (- a 0.5) (log t)) |
| 247.0ms | (+ (- (+ (log (+ x y)) (log z)) t) (* (- a 0.5) (log t))) |
| 205.0ms | (- (+ (log (+ x y)) (log z)) t) |
| 75.0ms | (* (- a 0.5) (log t)) |
| 69.0ms | (+ (log (+ x y)) (log z)) |
| 371.0ms | (- (+ (* a (log t)) (+ (log z) (log y))) (+ t (* 0.5 (log t)))) |
| 282.0ms | (- (* 0.5 (log (/ 1 t))) (+ t (+ (log (/ 1 z)) (+ (log (/ 1 x)) (* a (log (/ 1 t))))))) |
| 274.0ms | (- (+ (* 0.5 (log (/ -1 t))) (* a (log -1))) (+ (* a (log (/ -1 t))) (* 0.5 (log -1)))) |
| 269.0ms | (- (* 2 (log -1)) (+ (log (/ -1 x)) (log (/ -1 z)))) |
| 198.0ms | (+ (* (- (* (+ (log (+ x y)) (log z)) (+ (log (+ x y)) (log z))) (* t t)) (+ (* a a) (+ (* 0.5 0.5) (* a 0.5)))) (* (+ (+ (log (+ x y)) (log z)) t) (* (- (pow a 3) (pow 0.5 3)) (log t)))) |
11 alts after pruning (11 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.5b | (cbrt (+ x y)) |
| 0.5b | (cbrt (+ x y)) |
| 0.5b | (cbrt (+ x y)) |
| 0.5b | (* (cbrt (+ x y)) (cbrt (+ x y))) |
| 18× | cbrt-div |
| 15× | cbrt-prod |
| 11× | add-cube-cbrt |
| 11× | *-un-lft-identity |
| 11× | add-sqr-sqrt |
| 9× | flip-+ |
| 9× | flip3-+ |
| 9× | pow1 |
| 7× | pow1/3 |
| 6× | add-exp-log |
| 6× | associate-*l* |
| 6× | associate-*r* |
| 4× | add-log-exp |
| 4× | add-cbrt-cube |
| 4× | frac-times |
| 2× | pow-prod-up |
| 2× | associate-*r/ |
| 2× | associate-*l/ |
| 2× | pow-prod-down |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-plus |
| 1× | pow2 |
| 6.0ms | (* (cbrt (+ x y)) (cbrt (+ x y))) |
| 1.0ms | (cbrt (+ x y)) |
| 1.0ms | (cbrt (+ x y)) |
| 1.0ms | (cbrt (+ x y)) |
| 171.0ms | (* (cbrt (+ x y)) (cbrt (+ x y))) |
| 166.0ms | (cbrt (+ x y)) |
| 151.0ms | (cbrt (+ x y)) |
| 131.0ms | (cbrt (+ x y)) |
| 211.0ms | (- (+ (pow y 1/3) (* 1/3 (* x (pow (/ 1 (pow y 2)) 1/3)))) (* 1/9 (* (pow x 2) (pow (/ 1 (pow y 5)) 1/3)))) |
| 190.0ms | (- (+ (pow y 1/3) (* 1/3 (* x (pow (/ 1 (pow y 2)) 1/3)))) (* 1/9 (* (pow x 2) (pow (/ 1 (pow y 5)) 1/3)))) |
| 184.0ms | (- (+ (pow y 1/3) (* 1/3 (* x (pow (/ 1 (pow y 2)) 1/3)))) (* 1/9 (* (pow x 2) (pow (/ 1 (pow y 5)) 1/3)))) |
| 169.0ms | (- (+ (* 2/3 (* x (pow (/ 1 y) 1/3))) (pow y 2/3)) (* 1/9 (* (pow x 2) (pow (/ 1 (pow y 4)) 1/3)))) |
| 80.0ms | (* (cbrt (- (* x x) (* y y))) (cbrt (+ (pow x 3) (pow y 3)))) |
11 alts after pruning (10 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.6b | (cbrt (+ (log (+ x y)) (log z))) |
| 0.6b | (cbrt (+ (log (+ x y)) (log z))) |
| 0.6b | (cbrt (+ (log (+ x y)) (log z))) |
| 0.6b | (* (cbrt (+ (log (+ x y)) (log z))) (cbrt (+ (log (+ x y)) (log z)))) |
| 26× | *-un-lft-identity |
| 25× | cbrt-prod |
| 18× | cbrt-div |
| 14× | pow1 |
| 11× | add-cube-cbrt |
| 11× | add-sqr-sqrt |
| 10× | distribute-lft-out |
| 9× | flip-+ |
| 9× | flip3-+ |
| 8× | associate-*l* |
| 8× | associate-*r* |
| 7× | pow1/3 |
| 6× | add-exp-log |
| 5× | log-pow |
| 4× | add-log-exp |
| 4× | add-cbrt-cube |
| 4× | frac-times |
| 2× | pow-prod-up |
| 2× | associate-*r/ |
| 2× | associate-*l/ |
| 2× | pow-prod-down |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-plus |
| 1× | pow2 |
| 23.0ms | (* (cbrt (+ (log (+ x y)) (log z))) (cbrt (+ (log (+ x y)) (log z)))) |
| 6.0ms | (cbrt (+ (log (+ x y)) (log z))) |
| 5.0ms | (cbrt (+ (log (+ x y)) (log z))) |
| 5.0ms | (cbrt (+ (log (+ x y)) (log z))) |
| 1.1s | (* (cbrt (+ (log (+ x y)) (log z))) (cbrt (+ (log (+ x y)) (log z)))) |
| 315.0ms | (cbrt (+ (log (+ x y)) (log z))) |
| 307.0ms | (cbrt (+ (log (+ x y)) (log z))) |
| 304.0ms | (cbrt (+ (log (+ x y)) (log z))) |
| 239.0ms | (pow (- (* 2 (log -1)) (+ (log (/ -1 x)) (log (/ -1 z)))) 1/3) |
| 227.0ms | (pow (- (* 2 (log -1)) (+ (log (/ -1 x)) (log (/ -1 z)))) 1/3) |
| 195.0ms | (pow (- (* 2 (log -1)) (+ (log (/ -1 x)) (log (/ -1 z)))) 1/3) |
| 159.0ms | (pow (pow (+ (log (/ 1 z)) (log (/ 1 x))) 2) 1/3) |
| 139.0ms | (pow (pow (- (* 2 (log -1)) (+ (log (/ -1 x)) (log (/ -1 z)))) 2) 1/3) |
11 alts after pruning (9 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.5b | (+ (log (+ x y)) (log z)) |
| 0.5b | (cbrt (log t)) |
| 0.5b | (cbrt (log t)) |
| 0.5b | (cbrt (log t)) |
| 11× | *-un-lft-identity |
| 9× | cbrt-prod |
| 8× | add-cube-cbrt |
| 8× | add-sqr-sqrt |
| 5× | pow1 |
| 4× | add-log-exp |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 3× | pow1/3 |
| 3× | log-prod |
| 3× | associate-+l+ |
| 2× | distribute-lft-out |
| 2× | flip-+ |
| 2× | associate-+l- |
| 2× | flip3-+ |
| 2× | log-div |
| 1× | log-pow |
| 1× | sum-log |
| 1× | +-commutative |
| 5.0ms | (+ (log (+ x y)) (log z)) |
| 1.0ms | (cbrt (log t)) |
| 1.0ms | (cbrt (log t)) |
| 1.0ms | (cbrt (log t)) |
| 347.0ms | (cbrt (log t)) |
| 341.0ms | (cbrt (log t)) |
| 327.0ms | (cbrt (log t)) |
| 61.0ms | (+ (log (+ x y)) (log z)) |
| 216.0ms | (- (* 2 (log -1)) (+ (log (/ -1 x)) (log (/ -1 z)))) |
| 41.0ms | (- (+ (log (/ 1 z)) (log (/ 1 x)))) |
| 39.0ms | (pow (- (log -1) (log (/ -1 t))) 1/3) |
| 37.0ms | (log (- (* x x) (* y y))) |
| 33.0ms | (pow (- (log -1) (log (/ -1 t))) 1/3) |
12 alts after pruning (10 fresh and 2 done)
Merged error: 0.0b
0% (0.2b remaining)
Error of 0.3b against oracle of 0.0b and baseline of 0.3b
| 64159× | (pre true 80) |
| 56119× | (body nan 80) |
| 8040× | (body real 80) |