


Bits error versus a1



Bits error versus a2



Bits error versus th
Results
Initial program 0.6
Simplified0.6
rmApplied add-cube-cbrt0.6
Applied associate-/r*0.6
rmApplied distribute-lft-in0.6
Simplified0.5
rmApplied div-inv0.5
Applied times-frac0.5
Simplified0.5
Final simplification0.5
herbie shell --seed 2019007
(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: 35.3s)Debug log
1 calls. Slowest were:
| 67.0ms | (+ (* (/ (cos th) (sqrt 2)) (* a1 a1)) (* (/ (cos th) (sqrt 2)) (* a2 a2))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.7b
Found 2 expressions with local error:
| 0.7b | (/ (cos th) (sqrt 2)) |
| 0.5b | (* (/ (cos th) (sqrt 2)) (+ (* a1 a1) (* a2 a2))) |
2 calls. Slowest were:
| 8.0ms | (* (/ (cos th) (sqrt 2)) (+ (* a1 a1) (* a2 a2))) |
| 3.0ms | (/ (cos th) (sqrt 2)) |
2 calls. Slowest were:
| 173.0ms | (* (/ (cos th) (sqrt 2)) (+ (* a1 a1) (* a2 a2))) |
| 33.0ms | (/ (cos th) (sqrt 2)) |
60 calls. Slowest were:
| 372.0ms | (* (cos th) (- (* (* a1 a1) (* a1 a1)) (* (* a2 a2) (* a2 a2)))) |
| 356.0ms | (* (sqrt 2) (- (* a1 a1) (* a2 a2))) |
| 275.0ms | (/ (* (* (cos th) (cos th)) (cos th)) (* (* (sqrt 2) (sqrt 2)) (sqrt 2))) |
9 alts after pruning (9 fresh and 0 done)
Merged error: 0.2b
Found 2 expressions with local error:
| 0.4b | (/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (sqrt 2)) |
| 0.4b | (* (cos th) (+ (* a1 a1) (* a2 a2))) |
2 calls. Slowest were:
| 16.0ms | (/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (sqrt 2)) |
| 13.0ms | (* (cos th) (+ (* a1 a1) (* a2 a2))) |
2 calls. Slowest were:
| 166.0ms | (/ (* (cos th) (+ (* a1 a1) (* a2 a2))) (sqrt 2)) |
| 117.0ms | (* (cos th) (+ (* a1 a1) (* a2 a2))) |
34 calls. Slowest were:
| 360.0ms | (* (cos th) (- (* (* a1 a1) (* a1 a1)) (* (* a2 a2) (* a2 a2)))) |
| 205.0ms | (/ (* (* (* (cos th) (cos th)) (cos th)) (* (* (+ (* a1 a1) (* a2 a2)) (+ (* a1 a1) (* a2 a2))) (+ (* a1 a1) (* a2 a2)))) (* (* (sqrt 2) (sqrt 2)) (sqrt 2))) |
| 164.0ms | (+ (* (* a1 a1) (* a1 a1)) (- (* (* a2 a2) (* a2 a2)) (* (* a1 a1) (* a2 a2)))) |
8 alts after pruning (7 fresh and 1 done)
Merged error: 0.2b
Found 3 expressions with local error:
| 0.6b | (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) |
| 0.5b | (* (/ (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) (+ (* a1 a1) (* a2 a2))) |
| 0.1b | (/ (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) |
3 calls. Slowest were:
| 24.0ms | (* (/ (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) (+ (* a1 a1) (* a2 a2))) |
| 11.0ms | (/ (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) |
| 11.0ms | (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) |
3 calls. Slowest were:
| 435.0ms | (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) |
| 170.0ms | (* (/ (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) (+ (* a1 a1) (* a2 a2))) |
| 55.0ms | (/ (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) |
191 calls. Slowest were:
| 481.0ms | (+ (- (- (log (cos th)) (log (* (cbrt (sqrt 2)) (cbrt (sqrt 2))))) (log (cbrt (sqrt 2)))) (log (+ (* a1 a1) (* a2 a2)))) |
| 458.0ms | (/ (/ (* (* (cos th) (cos th)) (cos th)) (* (* (* (cbrt (sqrt 2)) (cbrt (sqrt 2))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (* (cbrt (sqrt 2)) (cbrt (sqrt 2))))) (sqrt 2)) |
| 306.0ms | (* (cbrt (sqrt 2)) (- (* a1 a1) (* a2 a2))) |
7 alts after pruning (5 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.6b | (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) |
| 0.4b | (/ (sqrt 2) a2) |
| 0.3b | (* (/ (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) (* a1 a1)) |
| 0.2b | (/ (* a2 (cos th)) (/ (sqrt 2) a2)) |
4 calls. Slowest were:
| 15.0ms | (* (/ (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) (* a1 a1)) |
| 8.0ms | (/ (* a2 (cos th)) (/ (sqrt 2) a2)) |
| 6.0ms | (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) |
4 calls. Slowest were:
| 600.0ms | (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) |
| 79.0ms | (/ (* a2 (cos th)) (/ (sqrt 2) a2)) |
| 72.0ms | (* (/ (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2)))) (cbrt (sqrt 2))) (* a1 a1)) |
| 24.0ms | (/ (sqrt 2) a2) |
96 calls. Slowest were:
| 537.0ms | (* (/ (/ (* (* (cos th) (cos th)) (cos th)) (* (sqrt 2) (sqrt 2))) (sqrt 2)) (* (* (* a1 a1) (* a1 a1)) (* a1 a1))) |
| 533.0ms | (+ (- (- (log (cos th)) (+ (log (cbrt (sqrt 2))) (log (cbrt (sqrt 2))))) (log (cbrt (sqrt 2)))) (log (* a1 a1))) |
| 385.0ms | (+ (- (log (/ (cos th) (* (cbrt (sqrt 2)) (cbrt (sqrt 2))))) (log (cbrt (sqrt 2)))) (log (* a1 a1))) |
7 alts after pruning (5 fresh and 2 done)
Merged error: 0b
0% (0.4b remaining)
Error of 0.5b against oracle of 0.1b and baseline of 0.5b