Details

Time bar (total: 4.2s)

analyze2.0ms

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

sample100.0ms

Algorithm
intervals
Results
58.0ms147×body1280valid
16.0ms67×body640valid
14.0ms16×body2560valid
3.0ms17×body320valid
1.0msbody160valid
0.0msbody80valid

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: 40.3b

Counts
2 → 1

localize8.0ms

Local error

Found 2 expressions with local error:

0.8b
(- (cos (+ x eps)) (cos x))
2.4b
(cos (+ x eps))

rewrite11.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 → 23
Calls
2 calls:
7.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))

simplify24.0ms

Algorithm
egg-herbie
Counts
29 → 29
Iterations

Useful iterations: 0 (20.0ms)

IterNodesCost
04999270
14999270

prune58.0ms

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

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New23629
Fresh000
Picked101
Done000
Total24630

Merged error: 0.3b

Counts
30 → 6

localize13.0ms

Local error

Found 3 expressions with local error:

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

rewrite27.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 cbrt-unprod flip-+ sin-mult unswap-sqr
Counts
3 → 41
Calls
3 calls:
6.0ms
(+ x (+ x eps))
11.0ms
(* (sin (/ eps 2)) (sin (/ (+ x (+ x eps)) 2)))
9.0ms
(sin (/ (+ x (+ x eps)) 2))

series22.0ms

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

simplify50.0ms

Algorithm
egg-herbie
Counts
50 → 50
Iterations

Useful iterations: 0 (45.0ms)

IterNodesCost
05025543

prune116.0ms

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

10 alts after pruning (10 fresh and 0 done)

PrunedKeptTotal
New43750
Fresh235
Picked101
Done000
Total461056

Merged error: 0.2b

Counts
56 → 10

localize11.0ms

Local error

Found 2 expressions with local error:

0.3b
(* (sin (/ eps 2)) (sin (+ x (* eps 1/2))))
2.5b
(sin (+ x (* eps 1/2)))

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
pow1 add-exp-log add-cube-cbrt *-un-lft-identity add-cbrt-cube
sin-sum associate-*r* associate-*l*
add-log-exp
distribute-rgt-in distribute-lft-in pow-prod-down prod-exp *-commutative cbrt-unprod sin-mult unswap-sqr
Counts
2 → 29
Calls
2 calls:
8.0ms
(* (sin (/ eps 2)) (sin (+ x (* eps 1/2))))
4.0ms
(sin (+ x (* eps 1/2)))

series17.0ms

Counts
2 → 6
Calls
2 calls:
11.0ms
(* (sin (/ eps 2)) (sin (+ x (* eps 1/2))))
5.0ms
(sin (+ x (* eps 1/2)))

simplify59.0ms

Algorithm
egg-herbie
Counts
35 → 35
Iterations

Useful iterations: 0 (55.0ms)

IterNodesCost
04785432
14785432

prune106.0ms

Filtered
28 candidates to 35 candidates (-25.0%)
Pruning

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New27835
Fresh639
Picked101
Done000
Total341145

Merged error: 0.1b

Counts
45 → 11

localize24.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (cos (* eps 1/2)) (sin (/ eps 2)))
0.2b
(* (cos x) (* (sin (* eps 1/2)) (sin (/ eps 2))))
0.2b
(* (sin x) (* (cos (* eps 1/2)) (sin (/ eps 2))))
0.2b
(* (sin (* eps 1/2)) (sin (/ eps 2)))

rewrite29.0ms

Algorithm
rewrite-expression-head
Rules
18×pow1 add-exp-log add-cbrt-cube
14×add-sqr-sqrt
12×associate-*l*
10×add-cube-cbrt *-un-lft-identity
associate-*r* pow-prod-down prod-exp cbrt-unprod
*-commutative add-log-exp
sin-mult unswap-sqr
associate-*r/
Counts
4 → 74
Calls
4 calls:
5.0ms
(* (cos (* eps 1/2)) (sin (/ eps 2)))
8.0ms
(* (cos x) (* (sin (* eps 1/2)) (sin (/ eps 2))))
8.0ms
(* (sin x) (* (cos (* eps 1/2)) (sin (/ eps 2))))
6.0ms
(* (sin (* eps 1/2)) (sin (/ eps 2)))

series37.0ms

Counts
4 → 12
Calls
4 calls:
5.0ms
(* (cos (* eps 1/2)) (sin (/ eps 2)))
12.0ms
(* (cos x) (* (sin (* eps 1/2)) (sin (/ eps 2))))
17.0ms
(* (sin x) (* (cos (* eps 1/2)) (sin (/ eps 2))))
4.0ms
(* (sin (* eps 1/2)) (sin (/ eps 2)))

simplify69.0ms

Algorithm
egg-herbie
Counts
86 → 86
Iterations

Useful iterations: 0 (61.0ms)

IterNodesCost
04944880
14944880

prune181.0ms

Filtered
66 candidates to 86 candidates (-30.3%)
Pruning

12 alts after pruning (12 fresh and 0 done)

PrunedKeptTotal
New81586
Fresh3710
Picked101
Done000
Total851297

Merged error: 0.0b

Counts
97 → 12

regimes187.0ms

Accuracy

71.2% (1.1b remaining)

Error of 1.2b against oracle of 0.1b and baseline of 4.0b

bsearch90.0ms

Steps
ItersRangePoint
8
7.68848971492884e-73
3.040507251683647e-69
6.203423099167994e-72
7
-1.2203975847718485e-123
-4.610186334894915e-125
-2.320785422446366e-124

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04563
14563

end0.0ms

sample3.0s

Algorithm
intervals
Results
1.7s4507×body1280valid
577.0ms634×body2560valid
401.0ms1796×body640valid
103.0ms672×body320valid
33.0ms304×body160valid
5.0ms87×body80valid

Profiling

Loading profile data...