Details

Time bar (total: 4.6s)

sample87.0ms

Algorithm
intervals
Results
50.0ms150×body1280valid
13.0ms16×body2560valid
11.0ms57×body640valid
3.0ms23×body320valid
1.0msbody160valid
0.0msbody80valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
094
1104
2104

prune2.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 38.7b

Counts
2 → 1

localize8.0ms

Local error

Found 2 expressions with local error:

0.9b
(- (cos (+ x eps)) (cos x))
3.9b
(cos (+ x eps))

rewrite7.0ms

Algorithm
rewrite-expression-head
Rules
cos-sum
+-commutative associate--l-
sub-neg flip3-- flip-- diff-cos
Counts
2 → 9
Calls
2 calls:
4.0ms
(- (cos (+ x eps)) (cos x))
3.0ms
(cos (+ x eps))

series71.0ms

Counts
2 → 6
Calls
2 calls:
56.0ms
(- (cos (+ x eps)) (cos x))
15.0ms
(cos (+ x eps))

simplify106.0ms

Algorithm
egg-herbie
Counts
15 → 15
Iterations

Useful iterations: 4 (103.0ms)

IterNodesCost
012088
126287
281386
3286584
4500182

prune45.0ms

Filtered
15 candidates to 9 candidates (60.0%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New8715
Fresh000
Picked101
Done000
Total9716

Merged error: 15.0b

Counts
16 → 7

localize14.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (cos x) (cos eps))
0.1b
(- (* (cos x) (cos eps)) (* (sin x) (sin eps)))
0.2b
(* (sin x) (sin eps))
1.8b
(- (- (* (cos x) (cos eps)) (* (sin x) (sin eps))) (cos x))

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
11×*-commutative
prod-diff
associate--l+
sub-neg cos-mult sin-mult
flip3-- fma-neg flip--
associate--l- frac-sub sub-div
Counts
4 → 27
Calls
4 calls:
3.0ms
(* (cos x) (cos eps))
7.0ms
(- (* (cos x) (cos eps)) (* (sin x) (sin eps)))
3.0ms
(* (sin x) (sin eps))
9.0ms
(- (- (* (cos x) (cos eps)) (* (sin x) (sin eps))) (cos x))

series300.0ms

Counts
4 → 12
Calls
4 calls:
39.0ms
(* (cos x) (cos eps))
82.0ms
(- (* (cos x) (cos eps)) (* (sin x) (sin eps)))
44.0ms
(* (sin x) (sin eps))
134.0ms
(- (- (* (cos x) (cos eps)) (* (sin x) (sin eps))) (cos x))

simplify62.0ms

Algorithm
egg-herbie
Counts
39 → 39
Iterations

Useful iterations: 3 (53.0ms)

IterNodesCost
0218337
1626325
22139304
35002273

prune109.0ms

Filtered
39 candidates to 25 candidates (64.1%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New34539
Fresh246
Picked011
Done000
Total361046

Merged error: 14.9b

Counts
46 → 10

localize21.0ms

Local error

Found 3 expressions with local error:

0.1b
(fma (cos eps) (cos x) (- (* (sin x) (sin eps))))
0.2b
(* (sin x) (sin eps))
1.8b
(+ (fma (cos eps) (cos x) (- (* (sin x) (sin eps)))) (fma (sin x) (+ (- (sin eps)) (sin eps)) (- (cos x))))

rewrite6.0ms

Algorithm
rewrite-expression-head
Rules
fma-udef
+-commutative associate-+l+ associate-+r+ flip3-+ *-commutative flip-+ sin-mult
Counts
3 → 8
Calls
3 calls:
1.0ms
(fma (cos eps) (cos x) (- (* (sin x) (sin eps))))
3.0ms
(* (sin x) (sin eps))
2.0ms
(+ (fma (cos eps) (cos x) (- (* (sin x) (sin eps)))) (fma (sin x) (+ (- (sin eps)) (sin eps)) (- (cos x))))

series309.0ms

Counts
3 → 9
Calls
3 calls:
84.0ms
(fma (cos eps) (cos x) (- (* (sin x) (sin eps))))
44.0ms
(* (sin x) (sin eps))
181.0ms
(+ (fma (cos eps) (cos x) (- (* (sin x) (sin eps)))) (fma (sin x) (+ (- (sin eps)) (sin eps)) (- (cos x))))

simplify45.0ms

Algorithm
egg-herbie
Counts
17 → 17
Iterations

Useful iterations: 3 (41.0ms)

IterNodesCost
0121191
1358188
21520176
35001155

prune83.0ms

Filtered
17 candidates to 12 candidates (70.6%)
Pruning

13 alts after pruning (11 fresh and 2 done)

PrunedKeptTotal
New12517
Fresh268
Picked011
Done011
Total141327

Merged error: 14.8b

Counts
27 → 13

localize13.0ms

Local error

Found 2 expressions with local error:

0.1b
(fma (sin x) (sin eps) (cos x))
1.8b
(fma (cos eps) (cos x) (- (fma (sin x) (sin eps) (cos x))))

rewrite1.0ms

Algorithm
rewrite-expression-head
Rules
fma-udef
Counts
2 → 2
Calls
2 calls:
1.0ms
(fma (sin x) (sin eps) (cos x))
1.0ms
(fma (cos eps) (cos x) (- (fma (sin x) (sin eps) (cos x))))

series189.0ms

Counts
2 → 6
Calls
2 calls:
54.0ms
(fma (sin x) (sin eps) (cos x))
134.0ms
(fma (cos eps) (cos x) (- (fma (sin x) (sin eps) (cos x))))

simplify83.0ms

Algorithm
egg-herbie
Counts
8 → 8
Iterations

Useful iterations: 3 (17.0ms)

IterNodesCost
06441
116540
249440
3204438
4500138

prune12.0ms

Filtered
8 candidates to 4 candidates (50.0%)
Pruning

13 alts after pruning (10 fresh and 3 done)

PrunedKeptTotal
New808
Fresh01010
Picked011
Done022
Total81321

Merged error: 14.8b

Counts
21 → 13

regimes141.0ms

Accuracy

89.7% (1.0b remaining)

Error of 15.2b against oracle of 14.2b and baseline of 24.1b

bsearch110.0ms

Steps
ItersRangePoint
9
1.9839578581908613e-17
7.414030703724578e-11
7.289861209258843e-11
8
-0.6319501064166059
-3.810242810899289e-05
-3.893780865416545e-05

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04030
14230
24230

end0.0ms

sample2.7s

Algorithm
intervals
Results
1.5s4530×body1280valid
526.0ms614×body2560valid
375.0ms1800×body640valid
103.0ms697×body320valid
32.0ms284×body160valid
4.0ms75×body80valid