Details

Time bar (total: 9.3s)

sample147.0ms

Algorithm
intervals
Results
88.0ms115×body1280valid
31.0ms67×body640valid
8.0ms47×body80valid
5.0ms16×body320valid
2.0ms11×body160valid

simplify51.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
02310
13910
26710
315310
443910
5183010
6500110

prune4.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 2.2b

localize15.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ (sin ky) (sqrt (+ (pow (sin kx) 2.0) (pow (sin ky) 2.0))))
0.2b
(pow (sin ky) 2.0)
0.3b
(pow (sin kx) 2.0)
2.1b
(sqrt (+ (pow (sin kx) 2.0) (pow (sin ky) 2.0)))

rewrite36.0ms

Algorithm
rewrite-expression-head
Rules
46×*-un-lft-identity
39×add-sqr-sqrt
26×add-cube-cbrt
25×sqrt-prod
24×times-frac
22×unpow-prod-down
10×distribute-lft-out
hypot-def
add-exp-log associate-/r* sqr-pow
pow1
pow-unpow add-cbrt-cube
expm1-log1p-u sqrt-div log1p-expm1-u add-log-exp
associate-/l*
pow-to-exp pow-pow flip3-+ pow-exp associate-/r/ flip-+
cbrt-undiv rem-sqrt-square frac-2neg sqrt-pow1 pow1/2 div-exp clear-num div-inv
Counts
4 → 117
Calls
4 calls:
12.0ms
(/ (sin ky) (sqrt (+ (pow (sin kx) 2.0) (pow (sin ky) 2.0))))
3.0ms
(pow (sin ky) 2.0)
3.0ms
(pow (sin kx) 2.0)
15.0ms
(sqrt (+ (pow (sin kx) 2.0) (pow (sin ky) 2.0)))

series419.0ms

Counts
4 → 12
Calls
4 calls:
130.0ms
(/ (sin ky) (sqrt (+ (pow (sin kx) 2.0) (pow (sin ky) 2.0))))
104.0ms
(pow (sin ky) 2.0)
106.0ms
(pow (sin kx) 2.0)
78.0ms
(sqrt (+ (pow (sin kx) 2.0) (pow (sin ky) 2.0)))

simplify39.0ms

Algorithm
egg-herbie
Counts
129 → 129
Iterations

Useful iterations: 2 (29.0ms)

IterNodesCost
03411065
11159981
25001976

prune415.0ms

Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 0.1b

localize11.0ms

Local error

Found 3 expressions with local error:

0.0b
(hypot (sin ky) (sin kx))
0.1b
(* (/ (sin ky) (hypot (sin ky) (sin kx))) (sin th))
0.2b
(/ (sin ky) (hypot (sin ky) (sin kx)))

rewrite13.0ms

Algorithm
rewrite-expression-head
Rules
24×add-sqr-sqrt
19×add-cube-cbrt *-un-lft-identity times-frac
13×associate-*l*
10×add-exp-log add-cbrt-cube
pow1
expm1-log1p-u associate-*r* associate-/r* log1p-expm1-u associate-/l* add-log-exp
cbrt-undiv div-exp prod-exp cbrt-unprod div-inv unswap-sqr
hypot-udef frac-2neg pow-prod-down associate-*l/ clear-num *-commutative
Counts
3 → 73
Calls
3 calls:
1.0ms
(hypot (sin ky) (sin kx))
7.0ms
(* (/ (sin ky) (hypot (sin ky) (sin kx))) (sin th))
4.0ms
(/ (sin ky) (hypot (sin ky) (sin kx)))

series507.0ms

Counts
3 → 9
Calls
3 calls:
115.0ms
(hypot (sin ky) (sin kx))
225.0ms
(* (/ (sin ky) (hypot (sin ky) (sin kx))) (sin th))
166.0ms
(/ (sin ky) (hypot (sin ky) (sin kx)))

simplify135.0ms

Algorithm
egg-herbie
Counts
82 → 82
Iterations

Useful iterations: 2 (26.0ms)

IterNodesCost
0287725
11045645
24962644
35001644

prune266.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 0b

localize11.0ms

Local error

Found 3 expressions with local error:

0.0b
(hypot (sin ky) (sin kx))
0.1b
(* (sin th) (/ (sin ky) (hypot (sin ky) (sin kx))))
0.2b
(/ (sin ky) (hypot (sin ky) (sin kx)))

rewrite14.0ms

Algorithm
rewrite-expression-head
Rules
24×add-sqr-sqrt
19×add-cube-cbrt *-un-lft-identity times-frac
13×associate-*r*
10×add-exp-log add-cbrt-cube
pow1
expm1-log1p-u associate-*l* associate-/r* log1p-expm1-u associate-/l* add-log-exp
cbrt-undiv div-exp prod-exp cbrt-unprod div-inv unswap-sqr
hypot-udef frac-2neg associate-*r/ pow-prod-down clear-num *-commutative
Counts
3 → 73
Calls
3 calls:
1.0ms
(hypot (sin ky) (sin kx))
7.0ms
(* (sin th) (/ (sin ky) (hypot (sin ky) (sin kx))))
4.0ms
(/ (sin ky) (hypot (sin ky) (sin kx)))

series531.0ms

Counts
3 → 9
Calls
3 calls:
121.0ms
(hypot (sin ky) (sin kx))
241.0ms
(* (sin th) (/ (sin ky) (hypot (sin ky) (sin kx))))
168.0ms
(/ (sin ky) (hypot (sin ky) (sin kx)))

simplify37.0ms

Algorithm
egg-herbie
Counts
82 → 82
Iterations

Useful iterations: 1 (7.0ms)

IterNodesCost
0284728
11150648
25002648

prune257.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 0b

localize13.0ms

Local error

Found 4 expressions with local error:

0.0b
(hypot (sin ky) (sin kx))
0.1b
(* (sin th) (/ 1 (/ (hypot (sin ky) (sin kx)) (sin ky))))
0.1b
(/ (hypot (sin ky) (sin kx)) (sin ky))
0.1b
(/ 1 (/ (hypot (sin ky) (sin kx)) (sin ky)))

rewrite40.0ms

Algorithm
rewrite-expression-head
Rules
156×times-frac
104×add-sqr-sqrt
92×*-un-lft-identity
90×add-cube-cbrt
44×associate-*r*
36×add-exp-log
20×add-cbrt-cube
16×associate-/r*
15×div-exp
10×div-inv
pow1 cbrt-undiv prod-exp
associate-/l*
unswap-sqr
expm1-log1p-u rec-exp 1-exp log1p-expm1-u add-log-exp
associate-*l* cbrt-unprod
frac-2neg clear-num associate-/r/
hypot-udef pow-flip associate-*r/ pow-prod-down un-div-inv *-commutative inv-pow
Counts
4 → 192
Calls
4 calls:
1.0ms
(hypot (sin ky) (sin kx))
21.0ms
(* (sin th) (/ 1 (/ (hypot (sin ky) (sin kx)) (sin ky))))
4.0ms
(/ (hypot (sin ky) (sin kx)) (sin ky))
7.0ms
(/ 1 (/ (hypot (sin ky) (sin kx)) (sin ky)))

series673.0ms

Counts
4 → 12
Calls
4 calls:
117.0ms
(hypot (sin ky) (sin kx))
244.0ms
(* (sin th) (/ 1 (/ (hypot (sin ky) (sin kx)) (sin ky))))
142.0ms
(/ (hypot (sin ky) (sin kx)) (sin ky))
169.0ms
(/ 1 (/ (hypot (sin ky) (sin kx)) (sin ky)))

simplify75.0ms

Algorithm
egg-herbie
Counts
204 → 204
Iterations

Useful iterations: 2 (58.0ms)

IterNodesCost
06512171
131151931
250021806

prune504.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 0b

regimes261.0ms

Accuracy

0% (0.2b remaining)

Error of 0.2b against oracle of 0.0b and baseline of 0.2b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0147
1167
2167

end0.0ms

sample4.8s

Algorithm
intervals
Results
3.2s3680×body1280valid
1.0s2076×body640valid
226.0ms665×body320valid
135.0ms1276×body80valid
63.0ms303×body160valid