


Bits error versus f
Results
Initial program 59.7
Taylor expanded around 0 0.8
rmApplied add-sqr-sqrt1.1
Applied associate-*l*0.8
Simplified0.8
Final simplification0.8
herbie shell --seed 2018362 +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: 46.6s)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 59.6b
Found 4 expressions with local error:
| 5.4b | (- (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))) |
| 0.2b | (* (/ PI 4) f) |
| 0.2b | (* (/ PI 4) f) |
| 0.2b | (* (/ PI 4) f) |
4 calls. Slowest were:
| 19.0ms | (- (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))) |
| 2.0ms | (* (/ PI 4) f) |
| 2.0ms | (* (/ PI 4) f) |
4 calls. Slowest were:
| 113.0ms | (- (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))) |
| 85.0ms | (* (/ PI 4) f) |
| 85.0ms | (* (/ PI 4) f) |
| 62.0ms | (* (/ PI 4) f) |
45 calls. Slowest were:
| 342.0ms | (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5))))) |
| 99.0ms | (fma (* (cbrt (exp (* (/ PI 4) f))) (cbrt (exp (* (/ PI 4) f)))) (cbrt (exp (* (/ PI 4) f))) (- (* (exp (- (* (/ PI 4) f))) 1))) |
| 90.0ms | (fma 1 (exp (* (/ PI 4) f)) (- (* (cbrt (exp (- (* (/ PI 4) f)))) (* (cbrt (exp (- (* (/ PI 4) f)))) (cbrt (exp (- (* (/ PI 4) f)))))))) |
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 | (* (pow f 5) (pow PI 5)) |
4 calls. Slowest were:
| 47.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)))))))) |
| 7.0ms | (* (pow f 5) (pow PI 5)) |
| 0.0ms | (pow PI 3) |
4 calls. Slowest were:
| 450.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)))))))) |
| 180.0ms | (* (pow f 5) (pow PI 5)) |
| 0.0ms | (pow PI 3) |
| 0.0ms | (pow PI 5) |
67 calls. Slowest were:
| 542.0ms | (* (/ 1 (/ PI 4)) (log (sqrt (/ (+ (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))))))))) |
| 413.0ms | (sqrt (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)))))))) |
| 376.0ms | (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))))))) |
8 alts after pruning (8 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 1.0b | (pow PI 3) |
| 1.0b | (pow PI 5) |
| 0.3b | (* (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:
| 40.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.0ms | (* (pow f 5) (pow PI 5)) |
| 0.0ms | (pow PI 3) |
4 calls. Slowest were:
| 382.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)))))) |
| 171.0ms | (* (pow f 5) (pow PI 5)) |
| 0.0ms | (pow PI 3) |
| 0.0ms | (pow PI 5) |
54 calls. Slowest were:
| 750.0ms | (sqrt (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5)))))) |
| 426.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))))))) |
| 405.0ms | (/ 1 (sqrt (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5))))))) |
8 alts after pruning (7 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 1.0b | (pow PI 3) |
| 1.0b | (pow PI 5) |
| 1.0b | (pow PI 5) |
| 1.0b | (cbrt (+ (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f))))) |
4 calls. Slowest were:
| 5.0ms | (cbrt (+ (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f))))) |
| 0.0ms | (pow PI 3) |
| 0.0ms | (pow PI 5) |
4 calls. Slowest were:
| 283.0ms | (cbrt (+ (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f))))) |
| 0.0ms | (pow PI 3) |
| 0.0ms | (pow PI 5) |
| 0.0ms | (pow PI 5) |
12 calls. Slowest were:
| 236.0ms | (cbrt (- (* (exp (* (/ PI 4) f)) (exp (* (/ PI 4) f))) (* (exp (- (* (/ PI 4) f))) (exp (- (* (/ PI 4) f)))))) |
| 228.0ms | (- (+ (* (/ 1 (/ PI 4)) (log (/ (* (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))))))))) (/ (log (/ (cbrt (+ (exp (/ (- PI) (/ 4 f))) (exp (/ (* f PI) 4)))) (sqrt (fma PI (fma (* (* 1/192 f) (* f f)) (* PI PI) (* 1/2 f)) (* (pow PI 5) (* (pow f 5) 1/61440)))))) (/ PI 4)))) |
| 227.0ms | (cbrt (+ (pow (exp (* (/ PI 4) f)) 3) (pow (exp (- (* (/ PI 4) f))) 3))) |
8 alts after pruning (6 fresh and 2 done)
Merged error: 0.0b
0% (0.7b remaining)
Error of 0.8b against oracle of 0.1b and baseline of 0.8b