Details

Time bar (total: 4.3s)

analyze2.0ms

Algorithm
search
Search
TrueOtherFalseIter
0%99.9%0.1%0
99.9%0%0.1%1

sample104.0ms

Algorithm
intervals
Results
51.0ms104×body1280valid
22.0ms23×body2560valid
16.0ms60×body640valid
3.0ms16×body320valid
3.0ms41×body80valid
2.0ms12×body160valid

simplify4.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (3.0ms)

IterNodesCost
0717
1717

prune3.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 38.2b

Counts
2 → 1

localize8.0ms

Local error

Found 2 expressions with local error:

1.2b
(- (sin (+ x eps)) (sin x))
4.0b
(sin (+ x eps))

rewrite10.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt *-un-lft-identity add-log-exp
pow1 add-exp-log add-cube-cbrt sin-sum add-cbrt-cube
sub-neg flip3-- diff-log diff-sin associate--l+ flip-- distribute-lft-out-- difference-of-squares
Counts
2 → 23
Calls
2 calls:
6.0ms
(- (sin (+ x eps)) (sin x))
4.0ms
(sin (+ x eps))

series12.0ms

Counts
2 → 6
Calls
2 calls:
8.0ms
(- (sin (+ x eps)) (sin x))
4.0ms
(sin (+ x eps))

simplify42.0ms

Algorithm
egg-herbie
Counts
29 → 29
Iterations

Useful iterations: 0 (39.0ms)

IterNodesCost
05348268

prune46.0ms

Filtered
23 candidates to 29 candidates (-26.1%)
Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New26329
Fresh000
Picked101
Done000
Total27330

Merged error: 0.3b

Counts
30 → 3

localize13.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ x (+ x eps))
0.2b
(* (sin (/ eps 2)) (cos (/ (+ x (+ x eps)) 2)))
3.9b
(cos (/ (+ x (+ x eps)) 2))

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
10×*-un-lft-identity
add-log-exp
add-sqr-sqrt
pow1 add-exp-log add-cube-cbrt add-cbrt-cube
associate-*r* associate-*l* sum-log distribute-lft-out
+-commutative associate-+r+ flip3-+ pow-prod-down prod-exp *-commutative sin-cos-mult cbrt-unprod flip-+ unswap-sqr
Counts
3 → 41
Calls
3 calls:
5.0ms
(+ x (+ x eps))
5.0ms
(* (sin (/ eps 2)) (cos (/ (+ x (+ x eps)) 2)))
6.0ms
(cos (/ (+ x (+ x eps)) 2))

series21.0ms

Counts
3 → 9
Calls
3 calls:
4.0ms
(+ x (+ x eps))
12.0ms
(* (sin (/ eps 2)) (cos (/ (+ x (+ x eps)) 2)))
5.0ms
(cos (/ (+ x (+ x eps)) 2))

simplify54.0ms

Algorithm
egg-herbie
Counts
50 → 50
Iterations

Useful iterations: 0 (49.0ms)

IterNodesCost
05169541

prune109.0ms

Filtered
38 candidates to 50 candidates (-31.6%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New45550
Fresh022
Picked011
Done000
Total45853

Merged error: 0.3b

Counts
53 → 8

localize15.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (sin (/ eps 2)) (cbrt (pow (cos (/ (+ x (+ x eps)) 2)) 3)))
0.5b
(pow (cos (/ (+ x (+ x eps)) 2)) 3)
0.5b
(cbrt (pow (cos (/ (+ x (+ x eps)) 2)) 3))
3.9b
(cos (/ (+ x (+ x eps)) 2))

rewrite20.0ms

Algorithm
rewrite-expression-head
Rules
28×cbrt-prod
24×add-sqr-sqrt
15×add-cube-cbrt *-un-lft-identity associate-*r*
10×unpow-prod-down cube-prod
pow1 add-exp-log
add-cbrt-cube
unswap-sqr
add-log-exp sqr-pow
cube-mult pow-unpow unpow3 associate-*l*
pow-to-exp pow-pow pow1/3 pow-prod-down pow-exp prod-exp *-commutative rem-cbrt-cube cbrt-unprod rem-cube-cbrt
Counts
4 → 85
Calls
4 calls:
8.0ms
(* (sin (/ eps 2)) (cbrt (pow (cos (/ (+ x (+ x eps)) 2)) 3)))
2.0ms
(pow (cos (/ (+ x (+ x eps)) 2)) 3)
2.0ms
(cbrt (pow (cos (/ (+ x (+ x eps)) 2)) 3))
7.0ms
(cos (/ (+ x (+ x eps)) 2))

series32.0ms

Counts
4 → 12
Calls
4 calls:
10.0ms
(* (sin (/ eps 2)) (cbrt (pow (cos (/ (+ x (+ x eps)) 2)) 3)))
12.0ms
(pow (cos (/ (+ x (+ x eps)) 2)) 3)
5.0ms
(cbrt (pow (cos (/ (+ x (+ x eps)) 2)) 3))
5.0ms
(cos (/ (+ x (+ x eps)) 2))

simplify40.0ms

Algorithm
egg-herbie
Counts
97 → 97
Iterations

Useful iterations: 0 (29.0ms)

IterNodesCost
049241255
149241255

prune153.0ms

Filtered
55 candidates to 97 candidates (-76.4%)
Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New96197
Fresh156
Picked011
Done011
Total978105

Merged error: 0.3b

Counts
105 → 8

localize18.0ms

Local error

Found 4 expressions with local error:

0.5b
(cbrt (cos (/ (+ x (+ x eps)) 2)))
3.9b
(cos (/ (+ x (+ x eps)) 2))
3.9b
(cos (/ (+ x (+ x eps)) 2))
3.9b
(cos (/ (+ x (+ x eps)) 2))

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt add-cube-cbrt *-un-lft-identity
pow1 add-exp-log add-cbrt-cube add-log-exp
cbrt-prod
pow1/3
Counts
4 → 32
Calls
4 calls:
1.0ms
(cbrt (cos (/ (+ x (+ x eps)) 2)))
8.0ms
(cos (/ (+ x (+ x eps)) 2))
6.0ms
(cos (/ (+ x (+ x eps)) 2))
7.0ms
(cos (/ (+ x (+ x eps)) 2))

series31.0ms

Counts
4 → 12
Calls
4 calls:
16.0ms
(cbrt (cos (/ (+ x (+ x eps)) 2)))
5.0ms
(cos (/ (+ x (+ x eps)) 2))
5.0ms
(cos (/ (+ x (+ x eps)) 2))
5.0ms
(cos (/ (+ x (+ x eps)) 2))

simplify69.0ms

Algorithm
egg-herbie
Counts
44 → 44
Iterations

Useful iterations: 0 (64.0ms)

IterNodesCost
04872415
14872415

prune116.0ms

Filtered
37 candidates to 44 candidates (-18.9%)
Pruning

8 alts after pruning (5 fresh and 3 done)

PrunedKeptTotal
New44044
Fresh055
Picked011
Done022
Total44852

Merged error: 0.3b

Counts
52 → 8

regimes163.0ms

Accuracy

99.3% (0.1b remaining)

Error of 0.5b against oracle of 0.4b and baseline of 14.6b

bsearch77.0ms

Steps
ItersRangePoint
10
2.3371078394277945e-18
8.187469366386551e-08
1.7904989265996457e-08
8
-31.653317132880385
-0.004380114327240192
-0.004478205628609146

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
04751
14751

end0.0ms

sample3.1s

Algorithm
intervals
Results
1.5s3216×body1280valid
623.0ms641×body2560valid
516.0ms1877×body640valid
147.0ms770×body320valid
67.0ms1138×body80valid
49.0ms358×body160valid

Profiling

Loading profile data...