


Bits error versus f
Initial program 59.6
Taylor expanded around 0 0.8
rmApplied *-un-lft-identity0.8
Applied log-prod0.8
Applied distribute-lft-in0.8
Simplified0.7
Final simplification0.7
herbie shell --seed 2018360 +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: 59.8s)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 59.9b
Found 4 expressions with local error:
| 4.9b | (- (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:
| 11.0ms | (- (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))) |
| 2.0ms | (* (/ PI 4) f) |
| 2.0ms | (* (/ PI 4) f) |
4 calls. Slowest were:
| 127.0ms | (- (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))) |
| 78.0ms | (* (/ PI 4) f) |
| 66.0ms | (* (/ PI 4) f) |
| 64.0ms | (* (/ PI 4) f) |
45 calls. Slowest were:
| 335.0ms | (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5))))) |
| 102.0ms | (fma 1 (exp (* (/ PI 4) f)) (- (* (exp (- (* (/ PI 4) f))) 1))) |
| 93.0ms | (fma 1 (exp (* (/ PI 4) f)) (- (* (cbrt (exp (- (* (/ PI 4) f)))) (* (cbrt (exp (- (* (/ PI 4) f)))) (cbrt (exp (- (* (/ PI 4) f)))))))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.4b
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 | (/ (+ (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)))))) |
| 21.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)))))))) |
| 0.0ms | (pow PI 3) |
4 calls. Slowest were:
| 460.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)))))))) |
| 282.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:
| 773.0ms | (/ (+ (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))))))) |
| 384.0ms | (/ (* (cbrt (+ (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f))))) (cbrt (+ (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))))))) |
| 373.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)))))) |
7 alts after pruning (7 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 1.0b | (pow PI 5) |
| 0.4b | (* 1/192 f) |
| 0.3b | (/ (log (/ (+ (exp (* (/ f 4) (- PI))) (exp (* f (/ PI 4)))) (fma PI (fma (* PI PI) (* (* 1/192 f) (* f f)) (* f 1/2)) (* (pow f 5) (* (pow PI 5) 1/61440))))) (/ PI 4)) |
| 0.3b | (fma PI (fma (* PI PI) (* (* 1/192 f) (* f f)) (* f 1/2)) (* (pow f 5) (* (pow PI 5) 1/61440))) |
4 calls. Slowest were:
| 14.0ms | (/ (log (/ (+ (exp (* (/ f 4) (- PI))) (exp (* f (/ PI 4)))) (fma PI (fma (* PI PI) (* (* 1/192 f) (* f f)) (* f 1/2)) (* (pow f 5) (* (pow PI 5) 1/61440))))) (/ PI 4)) |
| 0.0ms | (pow PI 5) |
| 0.0ms | (* 1/192 f) |
4 calls. Slowest were:
| 383.0ms | (/ (log (/ (+ (exp (* (/ f 4) (- PI))) (exp (* f (/ PI 4)))) (fma PI (fma (* PI PI) (* (* 1/192 f) (* f f)) (* f 1/2)) (* (pow f 5) (* (pow PI 5) 1/61440))))) (/ PI 4)) |
| 146.0ms | (fma PI (fma (* PI PI) (* (* 1/192 f) (* f f)) (* f 1/2)) (* (pow f 5) (* (pow PI 5) 1/61440))) |
| 7.0ms | (* 1/192 f) |
| 0.0ms | (pow PI 5) |
51 calls. Slowest were:
| 395.0ms | (/ (sqrt (log (/ (+ (exp (* (/ f 4) (- PI))) (exp (* f (/ PI 4)))) (fma PI (fma (* PI PI) (* (* 1/192 f) (* f f)) (* f 1/2)) (* (pow f 5) (* (pow PI 5) 1/61440)))))) 1) |
| 383.0ms | (/ (sqrt (log (/ (+ (exp (* (/ f 4) (- PI))) (exp (* f (/ PI 4)))) (fma PI (fma (* PI PI) (* (* 1/192 f) (* f f)) (* f 1/2)) (* (pow f 5) (* (pow PI 5) 1/61440)))))) (* (cbrt (/ PI 4)) (cbrt (/ PI 4)))) |
| 380.0ms | (* (cbrt (log (/ (+ (exp (* (/ f 4) (- PI))) (exp (* f (/ PI 4)))) (fma PI (fma (* PI PI) (* (* 1/192 f) (* f f)) (* f 1/2)) (* (pow f 5) (* (pow PI 5) 1/61440)))))) (cbrt (log (/ (+ (exp (* (/ f 4) (- PI))) (exp (* f (/ PI 4)))) (fma PI (fma (* PI PI) (* (* 1/192 f) (* f f)) (* f 1/2)) (* (pow f 5) (* (pow PI 5) 1/61440))))))) |
7 alts after pruning (6 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 5.7b | (exp (log (fma PI (fma (* PI PI) (* (* 1/192 f) (* f f)) (* f 1/2)) (* (pow f 5) (* (pow PI 5) 1/61440))))) |
| 1.0b | (pow PI 5) |
| 0.4b | (* 1/192 f) |
| 0.3b | (/ (log (/ (+ (exp (* (/ f 4) (- PI))) (exp (* f (/ PI 4)))) (exp (log (fma PI (fma (* PI PI) (* (* 1/192 f) (* f f)) (* f 1/2)) (* (pow f 5) (* (pow PI 5) 1/61440))))))) (/ PI 4)) |
4 calls. Slowest were:
| 34.0ms | (/ (log (/ (+ (exp (* (/ f 4) (- PI))) (exp (* f (/ PI 4)))) (exp (log (fma PI (fma (* PI PI) (* (* 1/192 f) (* f f)) (* f 1/2)) (* (pow f 5) (* (pow PI 5) 1/61440))))))) (/ PI 4)) |
| 5.0ms | (exp (log (fma PI (fma (* PI PI) (* (* 1/192 f) (* f f)) (* f 1/2)) (* (pow f 5) (* (pow PI 5) 1/61440))))) |
| 0.0ms | (pow PI 5) |
4 calls. Slowest were:
| 420.0ms | (/ (log (/ (+ (exp (* (/ f 4) (- PI))) (exp (* f (/ PI 4)))) (exp (log (fma PI (fma (* PI PI) (* (* 1/192 f) (* f f)) (* f 1/2)) (* (pow f 5) (* (pow PI 5) 1/61440))))))) (/ PI 4)) |
| 129.0ms | (exp (log (fma PI (fma (* PI PI) (* (* 1/192 f) (* f f)) (* f 1/2)) (* (pow f 5) (* (pow PI 5) 1/61440))))) |
| 12.0ms | (* 1/192 f) |
| 0.0ms | (pow PI 5) |
57 calls. Slowest were:
| 458.0ms | (- (log (log (/ (+ (exp (* (/ f 4) (- PI))) (exp (* f (/ PI 4)))) (exp (log (fma PI (fma (* PI PI) (* (* 1/192 f) (* f f)) (* f 1/2)) (* (pow f 5) (* (pow PI 5) 1/61440)))))))) (log (/ PI 4))) |
| 404.0ms | (exp (log (sqrt (fma PI (fma (* PI PI) (* (* 1/192 f) (* f f)) (* f 1/2)) (* (pow f 5) (* (pow PI 5) 1/61440)))))) |
| 363.0ms | (/ (cbrt (log (/ (+ (exp (* (/ f 4) (- PI))) (exp (* f (/ PI 4)))) (exp (log (fma PI (fma (* PI PI) (* (* 1/192 f) (* f f)) (* f 1/2)) (* (pow f 5) (* (pow PI 5) 1/61440)))))))) (cbrt (/ PI 4))) |
7 alts after pruning (5 fresh and 2 done)
Merged error: 0.0b
0% (0.6b remaining)
Error of 0.7b against oracle of 0.1b and baseline of 0.7b