Details

Time bar (total: 3.2s)

sample50.0ms

Algorithm
intervals
Results
17.0ms43×body1280valid
11.0ms46×body640valid
7.0ms134×body80valid
4.0ms26×body320valid
1.0msbody160valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0124
1154
2154

prune5.0ms

Filtered
1 candidates to 1 candidates (100.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New101
Fresh011
Picked000
Done000
Total112

Merged error: 0.1b

Counts
2 → 1

localize9.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* x (cos y)) (* z (sin y)))
0.1b
(* x (cos y))
0.1b
(* z (sin y))

rewrite9.0ms

Algorithm
rewrite-expression-head
Rules
*-commutative
fma-def
+-commutative flip3-+ flip-+
Counts
3 → 7
Calls
3 calls:
4.0ms
(+ (* x (cos y)) (* z (sin y)))
2.0ms
(* x (cos y))
2.0ms
(* z (sin y))

series138.0ms

Counts
3 → 9
Calls
3 calls:
64.0ms
(+ (* x (cos y)) (* z (sin y)))
34.0ms
(* x (cos y))
39.0ms
(* z (sin y))

simplify97.0ms

Algorithm
egg-herbie
Counts
16 → 16
Iterations

Useful iterations: 1 (4.0ms)

IterNodesCost
07054
122652
268552
3142752
4282252
5500152

prune31.0ms

Filtered
16 candidates to 11 candidates (68.8%)
Pruning

2 alts after pruning (1 fresh and 1 done)

PrunedKeptTotal
New15116
Fresh000
Picked011
Done000
Total15217

Merged error: 0.1b

Counts
17 → 2

localize18.0ms

Local error

Found 4 expressions with local error:

0.1b
(* z (sin y))
0.1b
(* (sin y) z)
0.2b
(* (fma x (cos y) (* (sin y) z)) (- (* x (cos y)) (* z (sin y))))
28.1b
(/ (* (fma x (cos y) (* (sin y) z)) (- (* x (cos y)) (* z (sin y)))) (- (* x (cos y)) (* z (sin y))))

rewrite22.0ms

Algorithm
rewrite-expression-head
Rules
12×*-commutative
prod-diff
distribute-rgt-in distribute-lft-in
associate-*r/
flip3-- flip--
sub-neg associate-/r/ associate-/l/ associate-/l*
frac-2neg clear-num div-inv
Counts
4 → 26
Calls
4 calls:
2.0ms
(* z (sin y))
3.0ms
(* (sin y) z)
5.0ms
(* (fma x (cos y) (* (sin y) z)) (- (* x (cos y)) (* z (sin y))))
11.0ms
(/ (* (fma x (cos y) (* (sin y) z)) (- (* x (cos y)) (* z (sin y)))) (- (* x (cos y)) (* z (sin y))))

series324.0ms

Counts
4 → 12
Calls
4 calls:
39.0ms
(* z (sin y))
32.0ms
(* (sin y) z)
183.0ms
(* (fma x (cos y) (* (sin y) z)) (- (* x (cos y)) (* z (sin y))))
69.0ms
(/ (* (fma x (cos y) (* (sin y) z)) (- (* x (cos y)) (* z (sin y)))) (- (* x (cos y)) (* z (sin y))))

simplify123.0ms

Algorithm
egg-herbie
Counts
38 → 38
Iterations

Useful iterations: 3 (119.0ms)

IterNodesCost
0180392
1748351
23799349
35001347

prune92.0ms

Filtered
38 candidates to 22 candidates (57.9%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New33538
Fresh000
Picked101
Done101
Total35540

Merged error: 0.1b

Counts
40 → 5

localize18.0ms

Local error

Found 4 expressions with local error:

0.1b
(* x (cos y))
0.1b
(* (sin y) z)
0.1b
(* z (sin y))
0.1b
(* z (sin y))

rewrite10.0ms

Algorithm
rewrite-expression-head
Rules
*-commutative
Counts
4 → 4
Calls
4 calls:
2.0ms
(* x (cos y))
3.0ms
(* (sin y) z)
2.0ms
(* z (sin y))
3.0ms
(* z (sin y))

series142.0ms

Counts
4 → 12
Calls
4 calls:
35.0ms
(* x (cos y))
35.0ms
(* (sin y) z)
35.0ms
(* z (sin y))
36.0ms
(* z (sin y))

simplify4.0ms

Algorithm
egg-herbie
Counts
16 → 16
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
01119
11119

prune41.0ms

Filtered
16 candidates to 8 candidates (50.0%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New16016
Fresh044
Picked011
Done000
Total16521

Merged error: 0.1b

Counts
21 → 5

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(fma x (cos y) (* (sin y) z))
0.1b
(* (sin y) z)
0.2b
(/ 1 (fma x (cos y) (* (sin y) z)))
0.2b
(/ 1 (/ 1 (fma x (cos y) (* (sin y) z))))

rewrite9.0ms

Algorithm
rewrite-expression-head
Rules
clear-num
frac-2neg associate-/r/ div-inv inv-pow
remove-double-div
pow-flip associate-/r* *-commutative fma-udef
Counts
4 → 17
Calls
4 calls:
1.0ms
(fma x (cos y) (* (sin y) z))
3.0ms
(* (sin y) z)
2.0ms
(/ 1 (fma x (cos y) (* (sin y) z)))
3.0ms
(/ 1 (/ 1 (fma x (cos y) (* (sin y) z))))

series332.0ms

Counts
4 → 12
Calls
4 calls:
67.0ms
(fma x (cos y) (* (sin y) z))
31.0ms
(* (sin y) z)
164.0ms
(/ 1 (fma x (cos y) (* (sin y) z)))
69.0ms
(/ 1 (/ 1 (fma x (cos y) (* (sin y) z))))

simplify67.0ms

Algorithm
egg-herbie
Counts
29 → 29
Iterations

Useful iterations: 6 (65.0ms)

IterNodesCost
03157
17657
220857
346457
4112357
5197857
6500155

prune48.0ms

Filtered
29 candidates to 17 candidates (58.6%)
Pruning

5 alts after pruning (3 fresh and 2 done)

PrunedKeptTotal
New29029
Fresh033
Picked011
Done011
Total29534

Merged error: 0.1b

Counts
34 → 5

regimes82.0ms

Accuracy

0% (0.1b remaining)

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

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01316
11316

end0.0ms

sample1.5s

Algorithm
intervals
Results
624.0ms1516×body1280valid
322.0ms1261×body640valid
225.0ms4275×body80valid
113.0ms642×body320valid
36.0ms306×body160valid