Details

Time bar (total: 4.2s)

sample77.0ms

Algorithm
intervals
Results
28.0ms91×body1280valid
17.0ms74×body640valid
12.0ms253×body80valid
3.0ms20×body320valid
1.0ms13×body160valid

simplify19.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
0267
1576
2876
31146
41326
51516
61716
71736
81736

prune8.0ms

Filtered
1 candidates to 1 candidates (100.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 0.3b

Counts
2 → 2

localize15.0ms

Local error

Found 2 expressions with local error:

0.2b
(* (cos th) (fma a1 a1 (* a2 a2)))
0.4b
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

rewrite7.0ms

Algorithm
rewrite-expression-head
Rules
*-commutative fma-udef associate-/l*
distribute-rgt-in frac-2neg distribute-lft-in clear-num div-inv
Counts
2 → 8
Calls
2 calls:
2.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
4.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

series314.0ms

Counts
2 → 6
Calls
2 calls:
105.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
209.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

simplify115.0ms

Algorithm
egg-herbie
Counts
14 → 14
Iterations

Useful iterations: 3 (11.0ms)

IterNodesCost
06677
115773
232471
384762
4337462
5500262

prune43.0ms

Filtered
14 candidates to 10 candidates (71.4%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New9514
Fresh101
Picked101
Done000
Total11516

Merged error: 0.2b

Counts
16 → 5

localize10.0ms

Local error

Found 2 expressions with local error:

0.2b
(/ (sqrt 2.0) (cos th))
0.4b
(/ (fma a1 a1 (* a2 a2)) (/ (sqrt 2.0) (cos th)))

rewrite6.0ms

Algorithm
rewrite-expression-head
Rules
frac-2neg clear-num associate-/r/ div-inv
associate-/r*
Counts
2 → 10
Calls
2 calls:
2.0ms
(/ (sqrt 2.0) (cos th))
3.0ms
(/ (fma a1 a1 (* a2 a2)) (/ (sqrt 2.0) (cos th)))

series215.0ms

Counts
2 → 6
Calls
2 calls:
44.0ms
(/ (sqrt 2.0) (cos th))
170.0ms
(/ (fma a1 a1 (* a2 a2)) (/ (sqrt 2.0) (cos th)))

simplify33.0ms

Algorithm
egg-herbie
Counts
16 → 16
Iterations

Useful iterations: 3 (30.0ms)

IterNodesCost
08386
123885
275580
3500270

prune44.0ms

Filtered
16 candidates to 10 candidates (62.5%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New14216
Fresh044
Picked011
Done000
Total14721

Merged error: 0.2b

Counts
21 → 7

localize15.0ms

Local error

Found 3 expressions with local error:

0.4b
(/ (fma a1 a1 (* a2 a2)) (/ 1 (/ (cos th) (sqrt 2.0))))
0.6b
(/ 1 (/ (cos th) (sqrt 2.0)))
0.7b
(/ (cos th) (sqrt 2.0))

rewrite11.0ms

Algorithm
rewrite-expression-head
Rules
10×associate-/r/
clear-num
frac-2neg associate-/r* div-inv
remove-double-div inv-pow
Counts
3 → 23
Calls
3 calls:
4.0ms
(/ (fma a1 a1 (* a2 a2)) (/ 1 (/ (cos th) (sqrt 2.0))))
3.0ms
(/ 1 (/ (cos th) (sqrt 2.0)))
3.0ms
(/ (cos th) (sqrt 2.0))

series276.0ms

Counts
3 → 9
Calls
3 calls:
174.0ms
(/ (fma a1 a1 (* a2 a2)) (/ 1 (/ (cos th) (sqrt 2.0))))
45.0ms
(/ 1 (/ (cos th) (sqrt 2.0)))
57.0ms
(/ (cos th) (sqrt 2.0))

simplify74.0ms

Algorithm
egg-herbie
Counts
32 → 32
Iterations

Useful iterations: 3 (71.0ms)

IterNodesCost
0115134
1401132
22177117
35002116

prune77.0ms

Filtered
32 candidates to 19 candidates (59.4%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New31132
Fresh145
Picked011
Done011
Total32739

Merged error: 0.2b

Counts
39 → 7

localize11.0ms

Local error

Found 3 expressions with local error:

0.1b
(/ 1 (cos th))
0.2b
(/ (/ (fma a1 a1 (* a2 a2)) (sqrt 2.0)) (/ 1 (cos th)))
0.4b
(/ (fma a1 a1 (* a2 a2)) (sqrt 2.0))

rewrite9.0ms

Algorithm
rewrite-expression-head
Rules
div-inv
frac-2neg clear-num
associate-/r/ associate-/l/
times-frac associate-/r* associate-/l* inv-pow
Counts
3 → 19
Calls
3 calls:
2.0ms
(/ 1 (cos th))
4.0ms
(/ (/ (fma a1 a1 (* a2 a2)) (sqrt 2.0)) (/ 1 (cos th)))
2.0ms
(/ (fma a1 a1 (* a2 a2)) (sqrt 2.0))

series289.0ms

Counts
3 → 9
Calls
3 calls:
11.0ms
(/ 1 (cos th))
173.0ms
(/ (/ (fma a1 a1 (* a2 a2)) (sqrt 2.0)) (/ 1 (cos th)))
105.0ms
(/ (fma a1 a1 (* a2 a2)) (sqrt 2.0))

simplify86.0ms

Algorithm
egg-herbie
Counts
28 → 28
Iterations

Useful iterations: 3 (83.0ms)

IterNodesCost
0110137
1416128
22238126
35001122

prune57.0ms

Filtered
28 candidates to 16 candidates (57.1%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New26228
Fresh134
Picked101
Done022
Total28735

Merged error: 0.2b

Counts
35 → 7

regimes198.0ms

Accuracy

0% (0.3b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0106

end0.0ms

sample2.2s

Algorithm
intervals
Results
822.0ms2560×body1280valid
449.0ms2073×body640valid
408.0ms8000×body80valid
164.0ms1043×body320valid
53.0ms509×body160valid