


Bits error versus kx



Bits error versus ky



Bits error versus th
Results
Initial program 12.4
Taylor expanded around -inf 12.4
Simplified8.6
rmApplied div-inv8.7
Applied associate-*l*8.8
rmApplied associate-*l/8.7
Simplified8.7
Final simplification8.7
herbie shell --seed 2019008 +o rules:numerics
(FPCore (kx ky th)
:name "Toniolo and Linder, Equation (3b), real"
(* (/ (sin ky) (sqrt (+ (pow (sin kx) 2) (pow (sin ky) 2)))) (sin th)))
Time bar (total: 29.6s)Debug log
1 calls. Slowest were:
| 15.0ms | (* (/ (sin ky) (sqrt (+ (pow (sin kx) 2) (pow (sin ky) 2)))) (sin th)) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 11.2b
Found 4 expressions with local error:
| 2.4b | (sqrt (+ (pow (sin kx) 2) (pow (sin ky) 2))) |
| 0.3b | (pow (sin ky) 2) |
| 0.2b | (pow (sin kx) 2) |
| 0.2b | (* (/ (sin ky) (sqrt (+ (pow (sin kx) 2) (pow (sin ky) 2)))) (sin th)) |
4 calls. Slowest were:
| 21.0ms | (* (/ (sin ky) (sqrt (+ (pow (sin kx) 2) (pow (sin ky) 2)))) (sin th)) |
| 10.0ms | (sqrt (+ (pow (sin kx) 2) (pow (sin ky) 2))) |
| 1.0ms | (pow (sin kx) 2) |
4 calls. Slowest were:
| 175.0ms | (* (/ (sin ky) (sqrt (+ (pow (sin kx) 2) (pow (sin ky) 2)))) (sin th)) |
| 129.0ms | (sqrt (+ (pow (sin kx) 2) (pow (sin ky) 2))) |
| 28.0ms | (pow (sin ky) 2) |
| 25.0ms | (pow (sin kx) 2) |
77 calls. Slowest were:
| 522.0ms | (* (/ (* (* (sin ky) (sin ky)) (sin ky)) (* (* (sqrt (+ (pow (sin kx) 2) (pow (sin ky) 2))) (sqrt (+ (pow (sin kx) 2) (pow (sin ky) 2)))) (sqrt (+ (pow (sin kx) 2) (pow (sin ky) 2))))) (* (* (sin th) (sin th)) (sin th))) |
| 408.0ms | (- (+ (* 1/12 (* (pow kx 2) ky)) ky) (* 1/6 (pow ky 3))) |
| 185.0ms | (* (* (* (/ (sin ky) (sqrt (+ (pow (sin kx) 2) (pow (sin ky) 2)))) (/ (sin ky) (sqrt (+ (pow (sin kx) 2) (pow (sin ky) 2))))) (/ (sin ky) (sqrt (+ (pow (sin kx) 2) (pow (sin ky) 2))))) (* (* (sin th) (sin th)) (sin th))) |
18 alts after pruning (18 fresh and 0 done)
Merged error: 9.2b
Found 3 expressions with local error:
| 0.2b | (* (/ (sin ky) (hypot (sin ky) (sin kx))) (sin th)) |
| 0.2b | (/ (sin ky) (hypot (sin ky) (sin kx))) |
| 0.1b | (hypot (sin ky) (sin kx)) |
3 calls. Slowest were:
| 12.0ms | (* (/ (sin ky) (hypot (sin ky) (sin kx))) (sin th)) |
| 7.0ms | (/ (sin ky) (hypot (sin ky) (sin kx))) |
| 0.0ms | (hypot (sin ky) (sin kx)) |
3 calls. Slowest were:
| 265.0ms | (* (/ (sin ky) (hypot (sin ky) (sin kx))) (sin th)) |
| 179.0ms | (/ (sin ky) (hypot (sin ky) (sin kx))) |
| 159.0ms | (hypot (sin ky) (sin kx)) |
55 calls. Slowest were:
| 480.0ms | (* (/ (* (* (sin ky) (sin ky)) (sin ky)) (* (* (hypot (sin ky) (sin kx)) (hypot (sin ky) (sin kx))) (hypot (sin ky) (sin kx)))) (* (* (sin th) (sin th)) (sin th))) |
| 321.0ms | (- (+ (* 1/12 (* kx (pow ky 2))) kx) (* 1/6 (pow kx 3))) |
| 236.0ms | (- (+ (* 1/6 (* kx ky)) (* 7/360 (* (pow kx 3) ky))) (* 71/720 (* kx (pow ky 3)))) |
21 alts after pruning (21 fresh and 0 done)
Merged error: 9.2b
Found 4 expressions with local error:
| 0.3b | (* (sin ky) (* (/ 1 (hypot (sin ky) (sin kx))) (sin th))) |
| 0.3b | (* (/ 1 (hypot (sin ky) (sin kx))) (sin th)) |
| 0.2b | (/ 1 (hypot (sin ky) (sin kx))) |
| 0.1b | (hypot (sin ky) (sin kx)) |
4 calls. Slowest were:
| 20.0ms | (* (sin ky) (* (/ 1 (hypot (sin ky) (sin kx))) (sin th))) |
| 9.0ms | (* (/ 1 (hypot (sin ky) (sin kx))) (sin th)) |
| 2.0ms | (/ 1 (hypot (sin ky) (sin kx))) |
4 calls. Slowest were:
| 277.0ms | (* (sin ky) (* (/ 1 (hypot (sin ky) (sin kx))) (sin th))) |
| 207.0ms | (* (/ 1 (hypot (sin ky) (sin kx))) (sin th)) |
| 189.0ms | (/ 1 (hypot (sin ky) (sin kx))) |
| 147.0ms | (hypot (sin ky) (sin kx)) |
37 calls. Slowest were:
| 490.0ms | (* (* (* (sin ky) (sin ky)) (sin ky)) (* (* (* (/ 1 (hypot (sin ky) (sin kx))) (sin th)) (* (/ 1 (hypot (sin ky) (sin kx))) (sin th))) (* (/ 1 (hypot (sin ky) (sin kx))) (sin th)))) |
| 339.0ms | (- (+ (* 1/12 (* kx (pow ky 2))) kx) (* 1/6 (pow kx 3))) |
| 271.0ms | (* (* (* (sin ky) (sin ky)) (sin ky)) (* (* (* (/ 1 (hypot (sin ky) (sin kx))) (/ 1 (hypot (sin ky) (sin kx)))) (/ 1 (hypot (sin ky) (sin kx)))) (* (* (sin th) (sin th)) (sin th)))) |
21 alts after pruning (21 fresh and 0 done)
Merged error: 9.2b
Found 3 expressions with local error:
| 0.3b | (* (sin ky) (/ (sin th) (hypot (sin ky) (sin kx)))) |
| 0.3b | (/ (sin th) (hypot (sin ky) (sin kx))) |
| 0.1b | (hypot (sin ky) (sin kx)) |
3 calls. Slowest were:
| 5.0ms | (* (sin ky) (/ (sin th) (hypot (sin ky) (sin kx)))) |
| 3.0ms | (/ (sin th) (hypot (sin ky) (sin kx))) |
| 0.0ms | (hypot (sin ky) (sin kx)) |
3 calls. Slowest were:
| 256.0ms | (* (sin ky) (/ (sin th) (hypot (sin ky) (sin kx)))) |
| 213.0ms | (/ (sin th) (hypot (sin ky) (sin kx))) |
| 138.0ms | (hypot (sin ky) (sin kx)) |
55 calls. Slowest were:
| 470.0ms | (* (* (* (sin ky) (sin ky)) (sin ky)) (/ (* (* (sin th) (sin th)) (sin th)) (* (* (hypot (sin ky) (sin kx)) (hypot (sin ky) (sin kx))) (hypot (sin ky) (sin kx))))) |
| 329.0ms | (- (+ (* 1/12 (* kx (pow ky 2))) kx) (* 1/6 (pow kx 3))) |
| 156.0ms | (* (* (* (sin ky) (sin ky)) (sin ky)) (* (* (/ (sin th) (hypot (sin ky) (sin kx))) (/ (sin th) (hypot (sin ky) (sin kx)))) (/ (sin th) (hypot (sin ky) (sin kx))))) |
21 alts after pruning (20 fresh and 1 done)
Merged error: 9.2b
0% (0.2b remaining)
Error of 8.7b against oracle of 8.5b and baseline of 8.7b