Details

Time bar (total: 5.9s)

sample92.0ms

Algorithm
intervals
Results
47.0ms140×body1280valid
20.0ms23×body2560valid
12.0ms58×body640valid
2.0ms17×body320valid
2.0ms16×body160valid
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: 41.4b

Counts
2 → 1

localize8.0ms

Local error

Found 2 expressions with local error:

1.3b
(- (cos (+ x eps)) (cos x))
3.8b
(cos (+ x eps))

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt *-un-lft-identity
add-cube-cbrt prod-diff
add-log-exp
fma-neg
pow1 add-exp-log expm1-log1p-u cos-sum add-cbrt-cube log1p-expm1-u
associate--l- sub-neg flip3-- diff-log flip-- diff-cos distribute-lft-out-- difference-of-squares
Counts
2 → 40
Calls
2 calls:
7.0ms
(- (cos (+ x eps)) (cos x))
4.0ms
(cos (+ x eps))

series71.0ms

Counts
2 → 6
Calls
2 calls:
48.0ms
(- (cos (+ x eps)) (cos x))
23.0ms
(cos (+ x eps))

simplify74.0ms

Algorithm
egg-herbie
Counts
46 → 46
Iterations

Useful iterations: 3 (69.0ms)

IterNodesCost
0192385
1523285
22519275
35001220

prune113.0ms

Filtered
46 candidates to 31 candidates (67.4%)
Pruning

13 alts after pruning (13 fresh and 0 done)

PrunedKeptTotal
New331346
Fresh000
Picked101
Done000
Total341347

Merged error: 16.8b

Counts
47 → 13

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))
2.8b
(- (- (* (cos x) (cos eps)) (* (sin x) (sin eps))) (cos x))

rewrite26.0ms

Algorithm
rewrite-expression-head
Rules
21×add-sqr-sqrt
17×*-un-lft-identity
15×add-cube-cbrt
11×prod-diff add-log-exp
pow1 add-exp-log add-cbrt-cube
associate-*r* associate-*l*
expm1-log1p-u fma-neg diff-log log1p-expm1-u
sub-neg associate--l+ cos-mult sin-mult
flip3-- pow-prod-down prod-exp *-commutative flip-- cbrt-unprod unswap-sqr
associate--l- frac-sub distribute-lft-out-- sub-div difference-of-squares
Counts
4 → 93
Calls
4 calls:
5.0ms
(* (cos x) (cos eps))
5.0ms
(- (* (cos x) (cos eps)) (* (sin x) (sin eps)))
5.0ms
(* (sin x) (sin eps))
10.0ms
(- (- (* (cos x) (cos eps)) (* (sin x) (sin eps))) (cos x))

series293.0ms

Counts
4 → 12
Calls
4 calls:
42.0ms
(* (cos x) (cos eps))
79.0ms
(- (* (cos x) (cos eps)) (* (sin x) (sin eps)))
44.0ms
(* (sin x) (sin eps))
128.0ms
(- (- (* (cos x) (cos eps)) (* (sin x) (sin eps))) (cos x))

simplify49.0ms

Algorithm
egg-herbie
Counts
105 → 105
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
0381988
11342837
25002822

prune283.0ms

Filtered
105 candidates to 72 candidates (68.6%)
Pruning

19 alts after pruning (19 fresh and 0 done)

PrunedKeptTotal
New9114105
Fresh7512
Picked101
Done000
Total9919118

Merged error: 16.7b

Counts
118 → 19

localize24.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (sin x) (sin eps))
0.3b
(+ (- (* (cos x) (cos eps)) (* (sin x) (sin eps))) (cos x))
0.3b
(+ (- (* (cos x) (cos eps)) (* (sin x) (sin eps))) (cos x))
2.8b
(fma (cos eps) (cos x) (- (fma (sin x) (sin eps) (cos x))))

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
14×add-log-exp
12×*-un-lft-identity
10×add-sqr-sqrt
add-cube-cbrt
pow1 add-exp-log associate-+l+ fma-def add-cbrt-cube
expm1-log1p-u sum-log log1p-expm1-u
associate-*r* associate-*l*
+-commutative associate-+l- sub-neg flip3-+ diff-log prod-diff flip-+ distribute-lft-out
pow-prod-down prod-exp *-commutative cbrt-unprod fma-udef sin-mult unswap-sqr
Counts
4 → 75
Calls
4 calls:
5.0ms
(* (sin x) (sin eps))
9.0ms
(+ (- (* (cos x) (cos eps)) (* (sin x) (sin eps))) (cos x))
9.0ms
(+ (- (* (cos x) (cos eps)) (* (sin x) (sin eps))) (cos x))
1.0ms
(fma (cos eps) (cos x) (- (fma (sin x) (sin eps) (cos x))))

series382.0ms

Counts
4 → 12
Calls
4 calls:
45.0ms
(* (sin x) (sin eps))
106.0ms
(+ (- (* (cos x) (cos eps)) (* (sin x) (sin eps))) (cos x))
97.0ms
(+ (- (* (cos x) (cos eps)) (* (sin x) (sin eps))) (cos x))
134.0ms
(fma (cos eps) (cos x) (- (fma (sin x) (sin eps) (cos x))))

simplify85.0ms

Algorithm
egg-herbie
Counts
87 → 87
Iterations

Useful iterations: 3 (77.0ms)

IterNodesCost
0238768
1735681
23112663
35002661

prune342.0ms

Filtered
87 candidates to 70 candidates (80.5%)
Pruning

19 alts after pruning (19 fresh and 0 done)

PrunedKeptTotal
New81687
Fresh51318
Picked101
Done000
Total8719106

Merged error: 16.6b

Counts
106 → 19

localize24.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (sin x) (sin eps))
0.3b
(+ (* (cos x) (cos eps)) (fma (- (sin x)) (sin eps) (cos x)))
0.3b
(+ (- (* (cos x) (cos eps)) (* (sin x) (sin eps))) (cos x))
2.8b
(fma (cos eps) (cos x) (- (fma (sin x) (sin eps) (cos x))))

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
11×add-log-exp
add-sqr-sqrt *-un-lft-identity
add-cube-cbrt
pow1 add-exp-log add-cbrt-cube
expm1-log1p-u fma-def log1p-expm1-u
associate-+l+ associate-*r* associate-*l* sum-log
+-commutative flip3-+ flip-+ fma-udef
associate-+l- sub-neg associate-+r+ diff-log prod-diff pow-prod-down prod-exp *-commutative cbrt-unprod sin-mult distribute-lft-out unswap-sqr
Counts
4 → 68
Calls
4 calls:
5.0ms
(* (sin x) (sin eps))
5.0ms
(+ (* (cos x) (cos eps)) (fma (- (sin x)) (sin eps) (cos x)))
9.0ms
(+ (- (* (cos x) (cos eps)) (* (sin x) (sin eps))) (cos x))
1.0ms
(fma (cos eps) (cos x) (- (fma (sin x) (sin eps) (cos x))))

series376.0ms

Counts
4 → 12
Calls
4 calls:
43.0ms
(* (sin x) (sin eps))
98.0ms
(+ (* (cos x) (cos eps)) (fma (- (sin x)) (sin eps) (cos x)))
96.0ms
(+ (- (* (cos x) (cos eps)) (* (sin x) (sin eps))) (cos x))
138.0ms
(fma (cos eps) (cos x) (- (fma (sin x) (sin eps) (cos x))))

simplify125.0ms

Algorithm
egg-herbie
Counts
80 → 80
Iterations

Useful iterations: 2 (30.0ms)

IterNodesCost
0318723
11136642
24956634
35001634

prune272.0ms

Filtered
80 candidates to 64 candidates (80.0%)
Pruning

18 alts after pruning (18 fresh and 0 done)

PrunedKeptTotal
New78280
Fresh21618
Picked101
Done000
Total811899

Merged error: 16.6b

Counts
99 → 18

regimes195.0ms

Accuracy

87.2% (1.3b remaining)

Error of 15.1b against oracle of 13.8b and baseline of 24.0b

bsearch124.0ms

Steps
ItersRangePoint
9
0.0002141056345597589
30542.545607798078
0.00021733742411115183
7
-3.110173650790201e-07
-6.09662256770312e-09
-2.7905907270542693e-08

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04248
14248

end0.0ms

sample2.9s

Algorithm
intervals
Results
1.6s4531×body1280valid
542.0ms608×body2560valid
417.0ms1873×body640valid
98.0ms616×body320valid
35.0ms291×body160valid
4.0ms81×body80valid