


Bits error versus a1



Bits error versus a2



Bits error versus th
Results
Initial program 0.5
rmApplied associate-*r*0.5
rmApplied add-sqr-sqrt0.5
Applied associate-/r*0.5
rmApplied add-sqr-sqrt0.5
Applied sqrt-prod0.5
Applied add-sqr-sqrt0.5
Applied sqrt-prod0.5
Applied *-un-lft-identity0.5
Applied times-frac0.5
Applied times-frac0.5
Applied associate-*l*0.5
Simplified0.5
rmApplied add-cube-cbrt0.5
Applied associate-/r*0.5
Final simplification0.5
herbie shell --seed 2019005 +o rules:numerics
(FPCore (a1 a2 th)
:name "Migdal et al, Equation (64)"
(+ (* (/ (cos th) (sqrt 2)) (* a1 a1)) (* (/ (cos th) (sqrt 2)) (* a2 a2))))
Time bar (total: 55.5s)Debug log
1 calls. Slowest were:
| 125.0ms | (+ (* (/ (cos th) (sqrt 2)) (* a1 a1)) (* (/ (cos th) (sqrt 2)) (* a2 a2))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.5b
Found 4 expressions with local error:
| 0.7b | (/ (cos th) (sqrt 2)) |
| 0.7b | (/ (cos th) (sqrt 2)) |
| 0.3b | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
| 0.2b | (* (/ (cos th) (sqrt 2)) (* a2 a2)) |
4 calls. Slowest were:
| 12.0ms | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
| 11.0ms | (* (/ (cos th) (sqrt 2)) (* a2 a2)) |
| 7.0ms | (/ (cos th) (sqrt 2)) |
4 calls. Slowest were:
| 97.0ms | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
| 77.0ms | (* (/ (cos th) (sqrt 2)) (* a2 a2)) |
| 54.0ms | (/ (cos th) (sqrt 2)) |
| 52.0ms | (/ (cos th) (sqrt 2)) |
98 calls. Slowest were:
| 376.0ms | (* (* (* (/ (cos th) (sqrt 2)) (/ (cos th) (sqrt 2))) (/ (cos th) (sqrt 2))) (* (* (* a2 a2) (* a2 a2)) (* a2 a2))) |
| 296.0ms | (/ (* (* (cos th) (cos th)) (cos th)) (* (* (sqrt 2) (sqrt 2)) (sqrt 2))) |
| 296.0ms | (- (/ (pow a1 2) (sqrt 2)) (* 1/2 (/ (* (pow a1 2) (pow th 2)) (sqrt 2)))) |
15 alts after pruning (15 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.7b | (/ (cos th) (sqrt 2)) |
| 0.7b | (/ (cos th) (sqrt 2)) |
| 0.3b | (* (/ (cos th) (sqrt 2)) a2) |
| 0.3b | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
4 calls. Slowest were:
| 14.0ms | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
| 8.0ms | (* (/ (cos th) (sqrt 2)) a2) |
| 6.0ms | (/ (cos th) (sqrt 2)) |
4 calls. Slowest were:
| 92.0ms | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
| 84.0ms | (* (/ (cos th) (sqrt 2)) a2) |
| 47.0ms | (/ (cos th) (sqrt 2)) |
| 43.0ms | (/ (cos th) (sqrt 2)) |
93 calls. Slowest were:
| 358.0ms | (- (/ a2 (sqrt 2)) (* 1/2 (/ (* a2 (pow th 2)) (sqrt 2)))) |
| 323.0ms | (- (/ (pow a1 2) (sqrt 2)) (* 1/2 (/ (* (pow a1 2) (pow th 2)) (sqrt 2)))) |
| 317.0ms | (* (* (* (/ (cos th) (sqrt 2)) (/ (cos th) (sqrt 2))) (/ (cos th) (sqrt 2))) (* (* (* a1 a1) (* a1 a1)) (* a1 a1))) |
12 alts after pruning (12 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.7b | (/ (cos th) (sqrt 2)) |
| 0.6b | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 0.6b | (/ (cos th) (sqrt (sqrt 2))) |
| 0.3b | (* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) a2) |
4 calls. Slowest were:
| 9.0ms | (* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) a2) |
| 7.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 7.0ms | (/ (cos th) (sqrt 2)) |
4 calls. Slowest were:
| 80.0ms | (/ (cos th) (sqrt (sqrt 2))) |
| 68.0ms | (* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) a2) |
| 40.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 36.0ms | (/ (cos th) (sqrt 2)) |
515 calls. Slowest were:
| 456.0ms | (/ (* (* (/ (cos th) (sqrt (sqrt 2))) (/ (cos th) (sqrt (sqrt 2)))) (/ (cos th) (sqrt (sqrt 2)))) (* (* (sqrt (sqrt 2)) (sqrt (sqrt 2))) (sqrt (sqrt 2)))) |
| 391.0ms | (- (/ a2 (sqrt 2)) (* 1/2 (/ (* a2 (pow th 2)) (sqrt 2)))) |
| 302.0ms | (- (+ (sqrt (/ 1 (sqrt 2))) (* 1/24 (* (sqrt (/ 1 (sqrt 2))) (pow th 4)))) (* 1/2 (* (sqrt (/ 1 (sqrt 2))) (pow th 2)))) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 1.0b | (/ 1 (sqrt (sqrt 2))) |
| 0.7b | (/ (cos th) (sqrt 2)) |
| 0.4b | (* (/ 1 (sqrt (sqrt 2))) (* (/ (/ (cos th) (sqrt (sqrt (sqrt 2)))) (sqrt (sqrt (sqrt 2)))) a2)) |
| 0.3b | (* (/ (/ (cos th) (sqrt (sqrt (sqrt 2)))) (sqrt (sqrt (sqrt 2)))) a2) |
4 calls. Slowest were:
| 21.0ms | (* (/ 1 (sqrt (sqrt 2))) (* (/ (/ (cos th) (sqrt (sqrt (sqrt 2)))) (sqrt (sqrt (sqrt 2)))) a2)) |
| 14.0ms | (* (/ (/ (cos th) (sqrt (sqrt (sqrt 2)))) (sqrt (sqrt (sqrt 2)))) a2) |
| 3.0ms | (/ (cos th) (sqrt 2)) |
4 calls. Slowest were:
| 129.0ms | (* (/ (/ (cos th) (sqrt (sqrt (sqrt 2)))) (sqrt (sqrt (sqrt 2)))) a2) |
| 78.0ms | (* (/ 1 (sqrt (sqrt 2))) (* (/ (/ (cos th) (sqrt (sqrt (sqrt 2)))) (sqrt (sqrt (sqrt 2)))) a2)) |
| 50.0ms | (/ (cos th) (sqrt 2)) |
| 0.0ms | (/ 1 (sqrt (sqrt 2))) |
336 calls. Slowest were:
| 558.0ms | (* (/ 1 (sqrt (sqrt 2))) (* (/ (/ (cos th) (sqrt (sqrt (sqrt 2)))) (sqrt (sqrt (sqrt 2)))) a2)) |
| 417.0ms | (+ (- (log (sqrt (sqrt 2)))) (log (* (/ (/ (cos th) (sqrt (sqrt (sqrt 2)))) (sqrt (sqrt (sqrt 2)))) a2))) |
| 347.0ms | (- (/ a2 (sqrt 2)) (* 1/2 (/ (* a2 (pow th 2)) (sqrt 2)))) |
9 alts after pruning (9 fresh and 0 done)
Merged error: 0b
0% (0.4b remaining)
Error of 0.5b against oracle of 0.0b and baseline of 0.5b