


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
(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: 57.0s)Debug log
1 calls. Slowest were:
| 93.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:
| 13.0ms | (* (/ (cos th) (sqrt 2)) (* a2 a2)) |
| 12.0ms | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
| 7.0ms | (/ (cos th) (sqrt 2)) |
4 calls. Slowest were:
| 97.0ms | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
| 96.0ms | (* (/ (cos th) (sqrt 2)) (* a2 a2)) |
| 58.0ms | (/ (cos th) (sqrt 2)) |
| 33.0ms | (/ (cos th) (sqrt 2)) |
98 calls. Slowest were:
| 454.0ms | (* (* (* (/ (cos th) (sqrt 2)) (/ (cos th) (sqrt 2))) (/ (cos th) (sqrt 2))) (* (* (* a2 a2) (* a2 a2)) (* a2 a2))) |
| 406.0ms | (* (* (* (/ (cos th) (sqrt 2)) (/ (cos th) (sqrt 2))) (/ (cos th) (sqrt 2))) (* (* (* a1 a1) (* a1 a1)) (* a1 a1))) |
| 332.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:
| 6.0ms | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
| 5.0ms | (* (/ (cos th) (sqrt 2)) a2) |
| 4.0ms | (/ (cos th) (sqrt 2)) |
4 calls. Slowest were:
| 100.0ms | (* (/ (cos th) (sqrt 2)) (* a1 a1)) |
| 94.0ms | (* (/ (cos th) (sqrt 2)) a2) |
| 54.0ms | (/ (cos th) (sqrt 2)) |
| 41.0ms | (/ (cos th) (sqrt 2)) |
93 calls. Slowest were:
| 477.0ms | (- (+ (/ 1 (sqrt 2)) (* 1/24 (/ (pow th 4) (sqrt 2)))) (* 1/2 (/ (pow th 2) (sqrt 2)))) |
| 462.0ms | (* (* (* (/ (cos th) (sqrt 2)) (/ (cos th) (sqrt 2))) (/ (cos th) (sqrt 2))) (* (* (* a1 a1) (* a1 a1)) (* a1 a1))) |
| 394.0ms | (- (/ a2 (sqrt 2)) (* 1/2 (/ (* a2 (pow th 2)) (sqrt 2)))) |
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:
| 24.0ms | (* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) a2) |
| 10.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 8.0ms | (/ (cos th) (sqrt (sqrt 2))) |
4 calls. Slowest were:
| 71.0ms | (* (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) a2) |
| 63.0ms | (/ (cos th) (sqrt (sqrt 2))) |
| 53.0ms | (/ (/ (cos th) (sqrt (sqrt 2))) (sqrt (sqrt 2))) |
| 31.0ms | (/ (cos th) (sqrt 2)) |
515 calls. Slowest were:
| 447.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)))) |
| 350.0ms | (- (/ a2 (sqrt 2)) (* 1/2 (/ (* a2 (pow th 2)) (sqrt 2)))) |
| 262.0ms | (/ (* (* (cos th) (cos th)) (cos th)) (* (* (sqrt 2) (sqrt 2)) (sqrt 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:
| 23.0ms | (* (/ 1 (sqrt (sqrt 2))) (* (/ (/ (cos th) (sqrt (sqrt (sqrt 2)))) (sqrt (sqrt (sqrt 2)))) a2)) |
| 13.0ms | (* (/ (/ (cos th) (sqrt (sqrt (sqrt 2)))) (sqrt (sqrt (sqrt 2)))) a2) |
| 7.0ms | (/ (cos th) (sqrt 2)) |
4 calls. Slowest were:
| 107.0ms | (* (/ (/ (cos th) (sqrt (sqrt (sqrt 2)))) (sqrt (sqrt (sqrt 2)))) a2) |
| 79.0ms | (* (/ 1 (sqrt (sqrt 2))) (* (/ (/ (cos th) (sqrt (sqrt (sqrt 2)))) (sqrt (sqrt (sqrt 2)))) a2)) |
| 30.0ms | (/ (cos th) (sqrt 2)) |
| 0.0ms | (/ 1 (sqrt (sqrt 2))) |
336 calls. Slowest were:
| 600.0ms | (* (/ 1 (sqrt (sqrt 2))) (* (/ (/ (cos th) (sqrt (sqrt (sqrt 2)))) (sqrt (sqrt (sqrt 2)))) a2)) |
| 426.0ms | (+ (- (log (sqrt (sqrt 2)))) (log (* (/ (/ (cos th) (sqrt (sqrt (sqrt 2)))) (sqrt (sqrt (sqrt 2)))) a2))) |
| 380.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