


Bits error versus f
Initial program 59.6
Taylor expanded around 0 0.8
rmApplied add-cube-cbrt0.8
Applied *-un-lft-identity0.8
Applied times-frac0.8
Applied log-prod0.9
Applied distribute-rgt-in0.8
Simplified0.8
Final simplification0.8
herbie shell --seed 2018365 +o rules:numerics
(FPCore (f)
:name "VandenBroeck and Keller, Equation (20)"
(- (* (/ 1 (/ PI 4)) (log (/ (+ (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))) (- (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))))))))
Time bar (total: 55.7s)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 59.0b
Found 4 expressions with local error:
| 6.1b | (- (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))) |
| 0.3b | (* (/ PI 4) f) |
| 0.3b | (* (/ PI 4) f) |
| 0.3b | (* (/ PI 4) f) |
4 calls. Slowest were:
| 22.0ms | (- (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))) |
| 4.0ms | (* (/ PI 4) f) |
| 4.0ms | (* (/ PI 4) f) |
4 calls. Slowest were:
| 129.0ms | (- (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))) |
| 76.0ms | (* (/ PI 4) f) |
| 62.0ms | (* (/ PI 4) f) |
| 61.0ms | (* (/ PI 4) f) |
45 calls. Slowest were:
| 330.0ms | (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5))))) |
| 71.0ms | (fma (sqrt (exp (* (/ PI 4) f))) (sqrt (exp (* (/ PI 4) f))) (- (* (exp (- (* (/ PI 4) f))) 1))) |
| 64.0ms | (fma 1 (exp (* (/ PI 4) f)) (- (* (exp (- (* (/ PI 4) f))) 1))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0.5b
Found 4 expressions with local error:
| 1.0b | (pow PI 3) |
| 1.0b | (pow PI 5) |
| 0.4b | (* (/ 1 (/ PI 4)) (log (/ (+ (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))) (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5)))))))) |
| 0.3b | (/ (+ (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))) (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5)))))) |
4 calls. Slowest were:
| 32.0ms | (* (/ 1 (/ PI 4)) (log (/ (+ (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))) (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5)))))))) |
| 29.0ms | (/ (+ (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))) (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5)))))) |
| 1.0ms | (pow PI 3) |
4 calls. Slowest were:
| 436.0ms | (* (/ 1 (/ PI 4)) (log (/ (+ (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))) (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5)))))))) |
| 273.0ms | (/ (+ (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))) (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5)))))) |
| 0.0ms | (pow PI 3) |
| 0.0ms | (pow PI 5) |
91 calls. Slowest were:
| 817.0ms | (/ (cbrt (+ (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f))))) (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5)))))) |
| 429.0ms | (/ (* (cbrt (+ (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f))))) (cbrt (+ (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))))) (* (cbrt (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5)))))) (cbrt (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5)))))))) |
| 398.0ms | (- (log (+ (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f))))) (log (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5))))))) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 1.0b | (pow PI 3) |
| 1.0b | (pow PI 5) |
| 0.4b | (/ (* 1 (log (/ (+ (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))) (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5)))))))) (/ PI 4)) |
| 0.3b | (/ (+ (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))) (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5)))))) |
4 calls. Slowest were:
| 74.0ms | (/ (* 1 (log (/ (+ (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))) (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5)))))))) (/ PI 4)) |
| 38.0ms | (/ (+ (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))) (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5)))))) |
| 0.0ms | (pow PI 3) |
4 calls. Slowest were:
| 388.0ms | (/ (* 1 (log (/ (+ (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))) (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5)))))))) (/ PI 4)) |
| 269.0ms | (/ (+ (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))) (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5)))))) |
| 0.0ms | (pow PI 3) |
| 0.0ms | (pow PI 5) |
57 calls. Slowest were:
| 440.0ms | (/ (cbrt (+ (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f))))) (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5)))))) |
| 421.0ms | (/ (sqrt (+ (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f))))) (sqrt (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5))))))) |
| 414.0ms | (/ 1 (sqrt (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5))))))) |
9 alts after pruning (9 fresh and 0 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 1.0b | (pow PI 3) |
| 1.0b | (pow PI 3) |
| 1.0b | (pow PI 5) |
| 1.0b | (pow PI 5) |
4 calls. Slowest were:
| 0.0ms | (pow PI 3) |
| 0.0ms | (pow PI 5) |
| 0.0ms | (pow PI 3) |
4 calls. Slowest were:
| 0.0ms | (pow PI 3) |
| 0.0ms | (pow PI 3) |
| 0.0ms | (pow PI 5) |
| 0.0ms | (pow PI 5) |
4 calls. Slowest were:
| 171.0ms | (- (+ (* (log (/ 1 (* (cbrt (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5)))))) (cbrt (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5))))))))) (/ 1 (/ PI 4))) (/ (log (/ (+ (exp (/ (* f PI) 4)) (exp (* (/ PI 4) (- f)))) (cbrt (fma PI (fma (* PI PI) (* (* 1/192 f) (* f f)) (* f 1/2)) (* (* (pow f 5) 1/61440) (pow PI 5)))))) (/ PI 4)))) |
| 143.0ms | (- (+ (* (log (/ 1 (* (cbrt (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5)))))) (cbrt (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5))))))))) (/ 1 (/ PI 4))) (/ (log (/ (+ (exp (/ (* f PI) 4)) (exp (* (/ PI 4) (- f)))) (cbrt (fma PI (fma (* PI PI) (* (* 1/192 f) (* f f)) (* f 1/2)) (* (* (pow f 5) 1/61440) (pow PI 5)))))) (/ PI 4)))) |
| 140.0ms | (- (+ (* (log (/ 1 (* (cbrt (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5)))))) (cbrt (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5))))))))) (/ 1 (/ PI 4))) (/ (log (/ (+ (exp (/ (* f PI) 4)) (exp (* (/ PI 4) (- f)))) (cbrt (fma PI (fma (* PI PI) (* (* 1/192 f) (* f f)) (* f 1/2)) (* (* (pow f 5) 1/61440) (pow PI 5)))))) (/ PI 4)))) |
9 alts after pruning (8 fresh and 1 done)
Merged error: 0.1b
0% (0.7b remaining)
Error of 0.8b against oracle of 0.1b and baseline of 0.8b