Details

Time bar (total: 14.8s)

sample79.0ms

Algorithm
intervals
Results
27.0ms86×body1280valid
14.0ms267×body80valid
12.0ms56×body640valid
8.0ms30×body320valid
2.0ms21×body160valid

simplify19.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0257
1507
2777
3967
41127
51277
61417
71417

prune5.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.5b

localize11.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* a1 a1) (* a2 a2))
0.3b
(* (/ (cos th) (sqrt 2.0)) (+ (* a1 a1) (* a2 a2)))
0.7b
(/ (cos th) (sqrt 2.0))

rewrite28.0ms

Algorithm
rewrite-expression-head
Rules
40×add-sqr-sqrt
38×times-frac
32×add-cube-cbrt *-un-lft-identity
22×associate-*l* sqrt-prod
10×add-exp-log add-cbrt-cube
associate-/r*
pow1 add-log-exp
flip3-+ associate-*r* flip-+ associate-/l* unswap-sqr
cbrt-undiv frac-times associate-*r/ div-exp prod-exp cbrt-unprod div-inv
+-commutative distribute-rgt-in frac-2neg distribute-lft-in pow-prod-down associate-*l/ clear-num sum-log *-commutative
Counts
3 → 98
Calls
3 calls:
2.0ms
(+ (* a1 a1) (* a2 a2))
18.0ms
(* (/ (cos th) (sqrt 2.0)) (+ (* a1 a1) (* a2 a2)))
4.0ms
(/ (cos th) (sqrt 2.0))

series316.0ms

Counts
3 → 9
Calls
3 calls:
35.0ms
(+ (* a1 a1) (* a2 a2))
216.0ms
(* (/ (cos th) (sqrt 2.0)) (+ (* a1 a1) (* a2 a2)))
65.0ms
(/ (cos th) (sqrt 2.0))

simplify63.0ms

Algorithm
egg-herbie
Counts
107 → 107
Iterations

Useful iterations: 2 (54.0ms)

IterNodesCost
0490872
12426805
25003791

prune299.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 0b

localize13.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* a1 a1) (* a2 a2))
0.3b
(* (/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0))) (+ (* a1 a1) (* a2 a2)))
0.6b
(/ (cos th) (sqrt (sqrt 2.0)))
0.6b
(/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))

rewrite190.0ms

Algorithm
rewrite-expression-head
Rules
1137×sqrt-prod
1119×times-frac
625×add-sqr-sqrt
578×add-cube-cbrt *-un-lft-identity
283×associate-*l*
34×associate-/l*
22×div-inv
20×add-exp-log add-cbrt-cube
18×associate-/r*
13×unswap-sqr
cbrt-undiv div-exp
pow1 add-log-exp
flip3-+ associate-*r* prod-exp cbrt-unprod flip-+
frac-times frac-2neg associate-*r/ clear-num
+-commutative distribute-rgt-in distribute-lft-in pow-prod-down associate-*l/ sum-log *-commutative associate-/l/
Counts
4 → 717
Calls
4 calls:
2.0ms
(+ (* a1 a1) (* a2 a2))
103.0ms
(* (/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0))) (+ (* a1 a1) (* a2 a2)))
5.0ms
(/ (cos th) (sqrt (sqrt 2.0)))
17.0ms
(/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))

series422.0ms

Counts
4 → 12
Calls
4 calls:
33.0ms
(+ (* a1 a1) (* a2 a2))
219.0ms
(* (/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0))) (+ (* a1 a1) (* a2 a2)))
101.0ms
(/ (cos th) (sqrt (sqrt 2.0)))
68.0ms
(/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))

simplify126.0ms

Algorithm
egg-herbie
Counts
729 → 729
Iterations

Useful iterations: 1 (44.0ms)

IterNodesCost
0196110436
150019573

prune1.7s

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 0b

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* a1 a1) (* a2 a2))
0.3b
(* (/ (/ 1 (sqrt (sqrt (sqrt 2.0)))) (sqrt (sqrt (sqrt 2.0)))) (* (/ (cos th) (sqrt (sqrt 2.0))) (+ (* a1 a1) (* a2 a2))))
0.3b
(* (/ (cos th) (sqrt (sqrt 2.0))) (+ (* a1 a1) (* a2 a2)))
0.6b
(/ (cos th) (sqrt (sqrt 2.0)))

rewrite277.0ms

Algorithm
rewrite-expression-head
Rules
1434×sqrt-prod
969×times-frac
518×add-sqr-sqrt
515×associate-*l*
507×add-cube-cbrt *-un-lft-identity
71×add-exp-log
47×add-cbrt-cube
27×prod-exp
25×div-exp
17×cbrt-unprod
15×div-inv
14×cbrt-undiv
11×pow1 frac-times associate-*r/
associate-/r*
flip3-+ flip-+
add-log-exp
distribute-rgt-in distribute-lft-in
associate-*r* pow-prod-down associate-*l/ unswap-sqr
rec-exp 1-exp associate-/l*
*-commutative
+-commutative frac-2neg clear-num sum-log
Counts
4 → 654
Calls
4 calls:
2.0ms
(+ (* a1 a1) (* a2 a2))
179.0ms
(* (/ (/ 1 (sqrt (sqrt (sqrt 2.0)))) (sqrt (sqrt (sqrt 2.0)))) (* (/ (cos th) (sqrt (sqrt 2.0))) (+ (* a1 a1) (* a2 a2))))
26.0ms
(* (/ (cos th) (sqrt (sqrt 2.0))) (+ (* a1 a1) (* a2 a2)))
5.0ms
(/ (cos th) (sqrt (sqrt 2.0)))

series690.0ms

Counts
4 → 12
Calls
4 calls:
26.0ms
(+ (* a1 a1) (* a2 a2))
230.0ms
(* (/ (/ 1 (sqrt (sqrt (sqrt 2.0)))) (sqrt (sqrt (sqrt 2.0)))) (* (/ (cos th) (sqrt (sqrt 2.0))) (+ (* a1 a1) (* a2 a2))))
329.0ms
(* (/ (cos th) (sqrt (sqrt 2.0))) (+ (* a1 a1) (* a2 a2)))
104.0ms
(/ (cos th) (sqrt (sqrt 2.0)))

simplify126.0ms

Algorithm
egg-herbie
Counts
666 → 666
Iterations

Useful iterations: 1 (41.0ms)

IterNodesCost
0178811355
1500110480

prune2.3s

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 0b

localize18.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt (sqrt 2.0))))
0.2b
(* (/ (/ 1 (sqrt 1)) (sqrt (sqrt (sqrt 2.0)))) (* (/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt (sqrt 2.0)))) (+ (* a1 a1) (* a2 a2))))
0.3b
(* (/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt (sqrt 2.0)))) (+ (* a1 a1) (* a2 a2)))
0.6b
(/ (cos th) (sqrt (sqrt 2.0)))

rewrite455.0ms

Algorithm
rewrite-expression-head
Rules
2385×sqrt-prod
1954×times-frac
1062×add-sqr-sqrt
1000×add-cube-cbrt *-un-lft-identity
644×associate-*l*
110×add-exp-log
74×add-cbrt-cube
46×div-exp
41×div-inv
38×prod-exp
34×associate-/l*
28×cbrt-undiv
24×cbrt-unprod
21×associate-/r*
17×unswap-sqr
11×pow1 frac-times associate-*r/
flip3-+ flip-+
distribute-rgt-in distribute-lft-in
rec-exp 1-exp associate-*r* pow-prod-down associate-*l/ add-log-exp
frac-2neg clear-num *-commutative
associate-/l/
Counts
4 → 1225
Calls
4 calls:
20.0ms
(/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt (sqrt 2.0))))
185.0ms
(* (/ (/ 1 (sqrt 1)) (sqrt (sqrt (sqrt 2.0)))) (* (/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt (sqrt 2.0)))) (+ (* a1 a1) (* a2 a2))))
126.0ms
(* (/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt (sqrt 2.0)))) (+ (* a1 a1) (* a2 a2)))
5.0ms
(/ (cos th) (sqrt (sqrt 2.0)))

series1.3s

Counts
4 → 12
Calls
4 calls:
320.0ms
(/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt (sqrt 2.0))))
221.0ms
(* (/ (/ 1 (sqrt 1)) (sqrt (sqrt (sqrt 2.0)))) (* (/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt (sqrt 2.0)))) (+ (* a1 a1) (* a2 a2))))
688.0ms
(* (/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt (sqrt 2.0)))) (+ (* a1 a1) (* a2 a2)))
100.0ms
(/ (cos th) (sqrt (sqrt 2.0)))

simplify232.0ms

Algorithm
egg-herbie
Counts
1237 → 1237
Iterations

Useful iterations: 1 (69.0ms)

IterNodesCost
0330121801
1500220488

prune3.6s

Pruning

6 alts after pruning (4 fresh and 2 done)

Merged error: 0b

regimes194.0ms

Accuracy

0% (0.4b remaining)

Error of 0.4b against oracle of 0.1b and baseline of 0.4b

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02217
12217

end0.0ms

sample2.2s

Algorithm
intervals
Results
807.0ms2518×body1280valid
447.0ms2077×body640valid
388.0ms8125×body80valid
166.0ms1074×body320valid
56.0ms516×body160valid