


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



Bits error versus i
Results
Initial program 28.7
rmApplied div-inv28.8
Final simplification28.8
herbie shell --seed 2019016 +o rules:numerics
(FPCore (x y z t a b c i)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2"
(/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
Time bar (total: 1.3m)Debug log
| 264× | (pre true 80) |
| 264× | (body real 80) |
| 221.0ms | (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 28.0b
Found 4 expressions with local error:
| 28.0b | (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) |
| 0.1b | (* (+ (* x y) z) y) |
| 0.1b | (* (+ (* (+ y a) y) b) y) |
| 0.1b | (* (+ (* (+ (* x y) z) y) 27464.7644705) y) |
| 15× | add-cube-cbrt |
| 15× | *-un-lft-identity |
| 15× | add-sqr-sqrt |
| 9× | associate-*l* |
| 9× | times-frac |
| 6× | add-exp-log |
| 6× | associate-*l/ |
| 6× | add-cbrt-cube |
| 5× | flip-+ |
| 5× | flip3-+ |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | associate-/l* |
| 3× | *-commutative |
| 3× | associate-/r* |
| 2× | associate-/l/ |
| 2× | associate-/r/ |
| 1× | div-inv |
| 1× | div-exp |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 69.0ms | (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) |
| 11.0ms | (* (+ (* (+ (* x y) z) y) 27464.7644705) y) |
| 8.0ms | (* (+ (* (+ y a) y) b) y) |
| 5.0ms | (* (+ (* x y) z) y) |
| 360.0ms | (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) |
| 36.0ms | (* (+ (* (+ (* x y) z) y) 27464.7644705) y) |
| 29.0ms | (* (+ (* (+ y a) y) b) y) |
| 21.0ms | (* (+ (* x y) z) y) |
| 591.0ms | (+ (* (* (+ (* (+ (* (+ y a) y) b) y) c) y) (* (+ (* (+ (* (+ y a) y) b) y) c) y)) (- (* i i) (* (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))) |
| 442.0ms | (+ (pow (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) 3) (pow t 3)) |
| 440.0ms | (- (* (+ (* (+ (* (+ y a) y) b) y) c) y) i) |
| 436.0ms | (sqrt (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t)) |
| 410.0ms | (/ (sqrt (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t)) 1) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 27.5b
Found 4 expressions with local error:
| 27.6b | (* (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (/ 1 (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))) |
| 0.4b | (/ 1 (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) |
| 0.1b | (* (+ (* x y) z) y) |
| 0.1b | (* (+ (* (+ y a) y) b) y) |
| 9× | add-cube-cbrt |
| 9× | add-exp-log |
| 9× | associate-*l* |
| 9× | *-un-lft-identity |
| 9× | add-sqr-sqrt |
| 7× | pow1 |
| 6× | flip-+ |
| 6× | associate-*l/ |
| 6× | associate-*r* |
| 6× | add-cbrt-cube |
| 6× | flip3-+ |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | associate-/r/ |
| 4× | expm1-log1p-u |
| 3× | *-commutative |
| 3× | associate-/r* |
| 2× | div-inv |
| 2× | prod-exp |
| 2× | rec-exp |
| 2× | frac-times |
| 1× | inv-pow |
| 1× | pow-flip |
| 1× | cbrt-unprod |
| 1× | un-div-inv |
| 1× | associate-*r/ |
| 1× | pow-prod-down |
| 1× | frac-2neg |
| 1× | clear-num |
| 77.0ms | (* (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (/ 1 (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))) |
| 15.0ms | (/ 1 (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) |
| 9.0ms | (* (+ (* (+ y a) y) b) y) |
| 5.0ms | (* (+ (* x y) z) y) |
| 311.0ms | (* (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (/ 1 (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))) |
| 68.0ms | (/ 1 (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) |
| 40.0ms | (* (+ (* x y) z) y) |
| 22.0ms | (* (+ (* (+ y a) y) b) y) |
| 972.0ms | (* (+ (pow (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) 3) (pow t 3)) 1) |
| 528.0ms | (* (- (* (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y)) (* t t)) 1) |
| 450.0ms | (+ (* (* (+ (* (+ (* (+ y a) y) b) y) c) y) (* (+ (* (+ (* (+ y a) y) b) y) c) y)) (- (* i i) (* (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))) |
| 423.0ms | (sqrt (/ 1 (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))) |
| 400.0ms | (- (* (+ (* (+ (* (+ y a) y) b) y) c) y) i) |
10 alts after pruning (9 fresh and 1 done)
Merged error: 27.5b
Found 4 expressions with local error:
| 28.0b | (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) |
| 28.0b | (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) |
| 28.0b | (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) |
| 2.7b | (cbrt (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))) |
| 36× | times-frac |
| 35× | add-cube-cbrt |
| 35× | *-un-lft-identity |
| 35× | add-sqr-sqrt |
| 15× | cbrt-prod |
| 10× | add-exp-log |
| 10× | add-cbrt-cube |
| 9× | associate-/l* |
| 9× | associate-/r* |
| 8× | associate-/r/ |
| 7× | flip-+ |
| 7× | flip3-+ |
| 6× | associate-/l/ |
| 4× | add-log-exp |
| 4× | div-inv |
| 4× | log1p-expm1-u |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | div-exp |
| 3× | frac-2neg |
| 3× | clear-num |
| 3× | cbrt-undiv |
| 1× | pow1/3 |
| 1× | cbrt-div |
| 82.0ms | (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) |
| 59.0ms | (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) |
| 51.0ms | (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) |
| 15.0ms | (cbrt (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))) |
| 677.0ms | (cbrt (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))) |
| 363.0ms | (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) |
| 294.0ms | (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) |
| 288.0ms | (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) |
| 550.0ms | (cbrt (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (pow (* (+ (* (+ (* (+ y a) y) b) y) c) y) 3) (pow i 3)))) |
| 506.0ms | (/ (sqrt (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t)) 1) |
| 489.0ms | (+ (pow (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) 3) (pow t 3)) |
| 474.0ms | (+ (pow (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) 3) (pow t 3)) |
| 424.0ms | (cbrt (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t)) |
10 alts after pruning (8 fresh and 2 done)
Merged error: 27.5b
Found 4 expressions with local error:
| 24.6b | (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (* (cbrt (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) (cbrt (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))) |
| 18.5b | (cbrt (fma (fma (+ a y) y b) (* y y) (fma c y i))) |
| 18.5b | (cbrt (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) |
| 18.5b | (cbrt (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) |
| 16× | cbrt-div |
| 9× | flip-+ |
| 9× | add-cube-cbrt |
| 9× | add-exp-log |
| 9× | flip3-+ |
| 9× | *-un-lft-identity |
| 9× | add-sqr-sqrt |
| 9× | cbrt-prod |
| 8× | associate-/r/ |
| 7× | add-cbrt-cube |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | pow1 |
| 4× | frac-times |
| 4× | expm1-log1p-u |
| 3× | associate-/l* |
| 3× | pow1/3 |
| 3× | times-frac |
| 2× | associate-/l/ |
| 2× | associate-*r/ |
| 2× | associate-*l/ |
| 2× | div-exp |
| 2× | cbrt-undiv |
| 1× | div-inv |
| 1× | cbrt-unprod |
| 1× | prod-exp |
| 1× | frac-2neg |
| 1× | associate-/r* |
| 1× | clear-num |
| 80.0ms | (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (* (cbrt (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) (cbrt (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))) |
| 15.0ms | (cbrt (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) |
| 10.0ms | (cbrt (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) |
| 1.0ms | (cbrt (fma (fma (+ a y) y b) (* y y) (fma c y i))) |
| 520.0ms | (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (* (cbrt (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) (cbrt (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))) |
| 271.0ms | (cbrt (fma (fma (+ a y) y b) (* y y) (fma c y i))) |
| 139.0ms | (cbrt (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) |
| 127.0ms | (cbrt (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)) |
| 512.0ms | (cbrt (sqrt (fma (fma (+ a y) y b) (* y y) (fma c y i)))) |
| 468.0ms | (* (cbrt (+ (* (* (+ (* (+ (* (+ y a) y) b) y) c) y) (* (+ (* (+ (* (+ y a) y) b) y) c) y)) (- (* i i) (* (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))) (cbrt (+ (* (* (+ (* (+ (* (+ y a) y) b) y) c) y) (* (+ (* (+ (* (+ y a) y) b) y) c) y)) (- (* i i) (* (* (+ (* (+ (* (+ y a) y) b) y) c) y) i))))) |
| 412.0ms | (cbrt (+ (* (* (+ (* (+ (* (+ y a) y) b) y) c) y) (* (+ (* (+ (* (+ y a) y) b) y) c) y)) (- (* i i) (* (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))) |
| 398.0ms | (cbrt (* (cbrt (fma (fma (+ a y) y b) (* y y) (fma c y i))) (cbrt (fma (fma (+ a y) y b) (* y y) (fma c y i))))) |
| 396.0ms | (sqrt (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t)) |
11 alts after pruning (8 fresh and 3 done)
Merged error: 27.0b
0% (1.2b remaining)
Error of 28.8b against oracle of 27.6b and baseline of 28.8b
| 8252× | (pre true 80) |
| 8251× | (body real 80) |
| 1× | (body real 160) |