Details

Time bar (total: 4.5s)

analyze2.0ms (0%)

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

sample95.0ms (2.1%)

Algorithm
intervals
Results
49.0ms136×body1280valid
17.0ms19×body2560valid
15.0ms65×body640valid
4.0ms23×body320valid
1.0ms11×body160valid
0.0msbody80valid

simplify4.0ms (0.1%)

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (3.0ms)

IterNodesCost
0717
1717

prune11.0ms (0.2%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 40.2b

Counts
2 → 1

localize9.0ms (0.2%)

Local error

Found 2 expressions with local error:

1.6b
(- (cos (+ x eps)) (cos x))
3.3b
(cos (+ x eps))

rewrite10.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt *-un-lft-identity add-log-exp
pow1 add-exp-log add-cube-cbrt cos-sum add-cbrt-cube
associate--l- sub-neg flip3-- diff-log flip-- diff-cos distribute-lft-out-- difference-of-squares
Counts
2 → 23
Calls

2 calls:

6.0ms
(- (cos (+ x eps)) (cos x))
4.0ms
(cos (+ x eps))

series14.0ms (0.3%)

Counts
2 → 6
Calls

2 calls:

9.0ms
(- (cos (+ x eps)) (cos x))
5.0ms
(cos (+ x eps))

simplify24.0ms (0.5%)

Algorithm
egg-herbie
Counts
29 → 29
Iterations

Useful iterations: 0 (20.0ms)

IterNodesCost
04999270
14999270

prune66.0ms (1.5%)

Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New22729
Fresh000
Picked101
Done000
Total23730

Merged error: 0.4b

Counts
30 → 7

localize13.0ms (0.3%)

Local error

Found 4 expressions with local error:

0.0b
(* -2 (* (sin (/ eps 2)) (sin (/ (+ x (+ x eps)) 2))))
0.0b
(+ x (+ x eps))
0.3b
(* (sin (/ eps 2)) (sin (/ (+ x (+ x eps)) 2)))
3.3b
(sin (/ (+ x (+ x eps)) 2))

rewrite34.0ms (0.8%)

Algorithm
rewrite-expression-head
Rules
12×*-un-lft-identity
11×pow1 add-exp-log add-cbrt-cube
add-sqr-sqrt add-log-exp
add-cube-cbrt
associate-*l*
associate-*r* pow-prod-down prod-exp cbrt-unprod
sum-log distribute-lft-out
*-commutative sin-mult
+-commutative associate-+r+ flip3-+ associate-*r/ flip-+ unswap-sqr
Counts
4 → 60
Calls

4 calls:

11.0ms
(* -2 (* (sin (/ eps 2)) (sin (/ (+ x (+ x eps)) 2))))
10.0ms
(* (sin (/ eps 2)) (sin (/ (+ x (+ x eps)) 2)))
7.0ms
(sin (/ (+ x (+ x eps)) 2))
5.0ms
(+ x (+ x eps))

series38.0ms (0.8%)

Counts
4 → 12
Calls

4 calls:

15.0ms
(* (sin (/ eps 2)) (sin (/ (+ x (+ x eps)) 2)))
14.0ms
(* -2 (* (sin (/ eps 2)) (sin (/ (+ x (+ x eps)) 2))))
6.0ms
(sin (/ (+ x (+ x eps)) 2))
4.0ms
(+ x (+ x eps))

simplify54.0ms (1.2%)

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 0 (47.0ms)

IterNodesCost
04907890
14907890

prune188.0ms (4.2%)

Pruning

13 alts after pruning (12 fresh and 1 done)

PrunedKeptTotal
New63972
Fresh336
Picked011
Done000
Total661379

Merged error: 0.4b

Counts
79 → 13

localize17.0ms (0.4%)

Local error

Found 4 expressions with local error:

0.7b
(cbrt (sin (/ (+ x (+ x eps)) 2)))
3.3b
(sin (/ (+ x (+ x eps)) 2))
3.3b
(sin (/ (+ x (+ x eps)) 2))
3.3b
(sin (/ (+ x (+ x eps)) 2))

rewrite28.0ms (0.6%)

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:

8.0ms
(sin (/ (+ x (+ x eps)) 2))
7.0ms
(sin (/ (+ x (+ x eps)) 2))
7.0ms
(sin (/ (+ x (+ x eps)) 2))
6.0ms
(cbrt (sin (/ (+ x (+ x eps)) 2)))

series37.0ms (0.8%)

Counts
4 → 12
Calls

4 calls:

20.0ms
(cbrt (sin (/ (+ x (+ x eps)) 2)))
6.0ms
(sin (/ (+ x (+ x eps)) 2))
6.0ms
(sin (/ (+ x (+ x eps)) 2))
6.0ms
(sin (/ (+ x (+ x eps)) 2))

simplify47.0ms (1%)

Algorithm
egg-herbie
Counts
44 → 44
Iterations

Useful iterations: 0 (42.0ms)

IterNodesCost
05090468

prune192.0ms (4.2%)

Pruning

13 alts after pruning (12 fresh and 1 done)

PrunedKeptTotal
New43144
Fresh01111
Picked101
Done011
Total441357

Merged error: 0.4b

Counts
57 → 13

localize17.0ms (0.4%)

Local error

Found 4 expressions with local error:

0.6b
(cbrt (sin (/ eps 2)))
0.6b
(cbrt (sin (/ eps 2)))
0.6b
(cbrt (sin (/ eps 2)))
3.3b
(sin (/ (+ x (+ x eps)) 2))

rewrite15.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
cbrt-prod
add-sqr-sqrt add-cube-cbrt *-un-lft-identity
pow1 add-exp-log add-cbrt-cube add-log-exp
pow1/3
Counts
4 → 40
Calls

4 calls:

8.0ms
(sin (/ (+ x (+ x eps)) 2))
2.0ms
(cbrt (sin (/ eps 2)))
2.0ms
(cbrt (sin (/ eps 2)))
2.0ms
(cbrt (sin (/ eps 2)))

series60.0ms (1.3%)

Counts
4 → 12
Calls

4 calls:

18.0ms
(cbrt (sin (/ eps 2)))
18.0ms
(cbrt (sin (/ eps 2)))
18.0ms
(cbrt (sin (/ eps 2)))
6.0ms
(sin (/ (+ x (+ x eps)) 2))

simplify30.0ms (0.7%)

Algorithm
egg-herbie
Counts
52 → 52
Iterations

Useful iterations: 0 (25.0ms)

IterNodesCost
05501442

prune171.0ms (3.8%)

Pruning

14 alts after pruning (12 fresh and 2 done)

PrunedKeptTotal
New51152
Fresh01111
Picked011
Done011
Total511465

Merged error: 0.4b

Counts
65 → 14

regimes227.0ms (5%)

Accuracy

Total 0.4b remaining (52%)

Threshold costs 0.4b (52%)

bsearch63.0ms (1.4%)

Steps
ItersRangePoint
9
0.17949788472177558
45623308.59113779
0.18290653919849093
7
-9.494300489779706e-09
-4.726833690786262e-10
-9.370340767231984e-09

simplify2.0ms (0%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
07838
17838

end0.0ms (0%)

sample3.1s (67.5%)

Algorithm
intervals
Results
1.7s4510×body1280valid
588.0ms631×body2560valid
420.0ms1814×body640valid
106.0ms660×body320valid
34.0ms299×body160valid
10.0ms86×body80valid

Profiling

Loading profile data...