Details

Time bar (total: 4.5s)

sample102.0ms

Algorithm
intervals
Results
64.0ms166×body1280valid
10.0ms12×body2560valid
10.0ms47×body640valid
4.0ms24×body320valid
0.0msbody160valid
0.0msbody80valid

simplify3.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0107
1107

prune3.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 39.7b

Counts
2 → 1

localize8.0ms

Local error

Found 2 expressions with local error:

0.9b
(- (cos (+ x eps)) (cos x))
3.8b
(cos (+ 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 cos-sum add-cbrt-cube
associate--l- sub-neg flip3-- diff-log flip-- diff-cos distribute-lft-out-- difference-of-squares
Counts
2 → 24
Calls
2 calls:
6.0ms
(- (cos (+ x eps)) (cos x))
4.0ms
(cos (+ x eps))

series14.0ms

Counts
2 → 6
Calls
2 calls:
9.0ms
(- (cos (+ x eps)) (cos x))
5.0ms
(cos (+ x eps))

simplify61.0ms

Algorithm
egg-herbie
Counts
30 → 30
Iterations

Useful iterations: 0 (58.0ms)

IterNodesCost
04864273
14864273

prune59.0ms

Filtered
23 candidates to 30 candidates (-30.4%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New23730
Fresh000
Picked101
Done000
Total24731

Merged error: 0.4b

Counts
31 → 7

localize13.0ms

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.9b
(sin (/ (+ x (+ x eps)) 2))

rewrite36.0ms

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:
14.0ms
(* -2 (* (sin (/ eps 2)) (sin (/ (+ x (+ x eps)) 2))))
5.0ms
(+ x (+ x eps))
10.0ms
(* (sin (/ eps 2)) (sin (/ (+ x (+ x eps)) 2)))
7.0ms
(sin (/ (+ x (+ x eps)) 2))

series34.0ms

Counts
4 → 12
Calls
4 calls:
13.0ms
(* -2 (* (sin (/ eps 2)) (sin (/ (+ x (+ x eps)) 2))))
4.0ms
(+ x (+ x eps))
11.0ms
(* (sin (/ eps 2)) (sin (/ (+ x (+ x eps)) 2)))
6.0ms
(sin (/ (+ x (+ x eps)) 2))

simplify39.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 0 (32.0ms)

IterNodesCost
04839890
14839890

prune162.0ms

Filtered
53 candidates to 72 candidates (-35.8%)
Pruning

14 alts after pruning (13 fresh and 1 done)

PrunedKeptTotal
New611172
Fresh426
Picked011
Done000
Total651479

Merged error: 0.3b

Counts
79 → 14

localize16.0ms

Local error

Found 4 expressions with local error:

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

rewrite26.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:
6.0ms
(cbrt (sin (/ (+ x (+ x eps)) 2)))
7.0ms
(sin (/ (+ x (+ x eps)) 2))
7.0ms
(sin (/ (+ x (+ x eps)) 2))
7.0ms
(sin (/ (+ x (+ x eps)) 2))

series38.0ms

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))

simplify30.0ms

Algorithm
egg-herbie
Counts
44 → 44
Iterations

Useful iterations: 0 (25.0ms)

IterNodesCost
05958468

prune177.0ms

Filtered
38 candidates to 44 candidates (-15.8%)
Pruning

14 alts after pruning (13 fresh and 1 done)

PrunedKeptTotal
New43144
Fresh01212
Picked101
Done011
Total441458

Merged error: 0.3b

Counts
58 → 14

localize16.0ms

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.9b
(sin (/ (+ x (+ x eps)) 2))

rewrite13.0ms

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:
2.0ms
(cbrt (sin (/ eps 2)))
2.0ms
(cbrt (sin (/ eps 2)))
2.0ms
(cbrt (sin (/ eps 2)))
6.0ms
(sin (/ (+ x (+ x eps)) 2))

series62.0ms

Counts
4 → 12
Calls
4 calls:
18.0ms
(cbrt (sin (/ eps 2)))
19.0ms
(cbrt (sin (/ eps 2)))
18.0ms
(cbrt (sin (/ eps 2)))
6.0ms
(sin (/ (+ x (+ x eps)) 2))

simplify28.0ms

Algorithm
egg-herbie
Counts
52 → 52
Iterations

Useful iterations: 0 (23.0ms)

IterNodesCost
05150442

prune150.0ms

Filtered
45 candidates to 52 candidates (-15.6%)
Pruning

15 alts after pruning (13 fresh and 2 done)

PrunedKeptTotal
New49352
Fresh21012
Picked011
Done011
Total511566

Merged error: 0.3b

Counts
66 → 15

regimes255.0ms

Accuracy

97.1% (0.4b remaining)

Error of 0.8b against oracle of 0.4b and baseline of 15.3b

bsearch75.0ms

Steps
ItersRangePoint
9
5.637513820892623e-10
0.06592465963988953
1.0227397076061673e-05
7
-167.22532332526734
-0.6973264211480649
-0.7127791457499839

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03538
13538

end0.0ms

sample3.1s

Algorithm
intervals
Results
1.7s4509×body1280valid
575.0ms613×body2560valid
436.0ms1852×body640valid
103.0ms651×body320valid
31.0ms290×body160valid
5.0ms85×body80valid

Profiling

Loading profile data...