


Bits error versus f
Results
Initial program 59.6
Taylor expanded around 0 0.8
rmApplied add-exp-log0.8
Applied add-exp-log0.8
Applied div-exp0.8
rmApplied associate-*l/0.7
Simplified0.7
Final simplification0.7
herbie shell --seed 2018360
(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: 53.0s)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)))) |
| 4.0ms | (* (/ PI 4) f) |
| 4.0ms | (* (/ PI 4) f) |
4 calls. Slowest were:
| 142.0ms | (- (exp (* (/ PI 4) f)) (exp (- (* (/ PI 4) f)))) |
| 81.0ms | (* (/ PI 4) f) |
| 74.0ms | (* (/ PI 4) f) |
| 73.0ms | (* (/ PI 4) f) |
25 calls. Slowest were:
| 315.0ms | (+ (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5))))) |
| 60.0ms | (- (exp (* 1/4 (* PI f))) (exp (- (* 1/4 (* PI f))))) |
| 35.0ms | (- (exp (* 1/4 (* PI f))) (exp (* -1/4 (* PI 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:
| 31.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:
| 463.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)))))))) |
| 292.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:
| 828.0ms | (* (/ 1 (/ PI 4)) (log (/ (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)))))))) |
| 511.0ms | (* (* (* (/ 1 (/ PI 4)) (/ 1 (/ PI 4))) (/ 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))))))) (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)))))))) (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))))))))) |
| 449.0ms | (/ (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))))))) |
8 alts after pruning (8 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 5.7b | (exp (- (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)))))))) |
| 1.0b | (pow PI 3) |
| 1.0b | (pow PI 5) |
| 0.4b | (* (/ 1 (/ PI 4)) (log (exp (- (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)))))))))) |
4 calls. Slowest were:
| 45.0ms | (* (/ 1 (/ PI 4)) (log (exp (- (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)))))))))) |
| 19.0ms | (exp (- (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)))))))) |
| 0.0ms | (pow PI 3) |
4 calls. Slowest were:
| 534.0ms | (exp (- (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)))))))) |
| 534.0ms | (* (/ 1 (/ PI 4)) (log (exp (- (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)))))))))) |
| 0.0ms | (pow PI 3) |
| 0.0ms | (pow PI 5) |
69 calls. Slowest were:
| 613.0ms | (* (log (exp (log (+ (* (* 1/2 (* f PI)) (* 1/2 (* f PI))) (- (* (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5)))) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5))))) (* (* 1/2 (* f PI)) (+ (* 1/192 (* (pow f 3) (pow PI 3))) (* 1/61440 (* (pow f 5) (pow PI 5)))))))))) (/ 1 (/ PI 4))) |
| 452.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))))))) |
| 430.0ms | (exp (sqrt (- (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))))))))) |
7 alts after pruning (6 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 1.0b | (pow PI 5) |
| 0.5b | (/ PI (/ 4 f)) |
| 0.4b | (* (* PI f) 1/192) |
| 0.3b | (* (* PI f) (* PI f)) |
4 calls. Slowest were:
| 4.0ms | (* (* PI f) (* PI f)) |
| 2.0ms | (* (* PI f) 1/192) |
| 0.0ms | (/ PI (/ 4 f)) |
4 calls. Slowest were:
| 51.0ms | (* (* PI f) (* PI f)) |
| 49.0ms | (* (* PI f) 1/192) |
| 48.0ms | (/ PI (/ 4 f)) |
| 0.0ms | (pow PI 5) |
20 calls. Slowest were:
| 618.0ms | (* (* (* (* PI f) (* PI f)) (* PI f)) (* (* (* PI f) (* PI f)) (* PI f))) |
| 182.0ms | (- (/ (log (/ (+ (exp (* (- f) (/ PI 4))) (exp (/ PI (/ 4 f)))) (+ (* (* (* PI f) 1/192) (* (* PI f) (* PI f))) (+ (* (pow f 5) (* (pow PI 5) 1/61440)) (* PI (* 1/2 f)))))) (/ PI 4))) |
| 11.0ms | (+ (log (* PI f)) (log (* PI f))) |
7 alts after pruning (5 fresh and 2 done)
Merged error: 0.0b
0% (0.5b remaining)
Error of 0.7b against oracle of 0.1b and baseline of 0.7b