Details

Time bar (total: 4.4s)

analyze1.0ms

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

sample106.0ms

Algorithm
intervals
Results
48.0ms97×body1280valid
25.0ms27×body2560valid
16.0ms56×body640valid
6.0ms32×body320valid
2.0ms32×body80valid
1.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.3b

Counts
2 → 1

localize8.0ms

Local error

Found 2 expressions with local error:

2.1b
(- (sin (+ x eps)) (sin x))
2.4b
(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))
5.0ms
(sin (+ x eps))

simplify42.0ms

Algorithm
egg-herbie
Counts
29 → 29
Iterations

Useful iterations: 0 (39.0ms)

IterNodesCost
05348268

prune45.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.4b

Counts
30 → 3

localize13.0ms

Local error

Found 4 expressions with local error:

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

rewrite25.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-cos-mult
+-commutative associate-+r+ flip3-+ associate-*r/ flip-+ unswap-sqr
Counts
4 → 60
Calls
4 calls:
7.0ms
(* 2 (* (sin (/ eps 2)) (cos (/ (+ x (+ x eps)) 2))))
5.0ms
(+ x (+ x eps))
5.0ms
(* (sin (/ eps 2)) (cos (/ (+ x (+ x eps)) 2)))
7.0ms
(cos (/ (+ x (+ x eps)) 2))

series34.0ms

Counts
4 → 12
Calls
4 calls:
14.0ms
(* 2 (* (sin (/ eps 2)) (cos (/ (+ x (+ x eps)) 2))))
4.0ms
(+ x (+ x eps))
10.0ms
(* (sin (/ eps 2)) (cos (/ (+ x (+ x eps)) 2)))
5.0ms
(cos (/ (+ x (+ x eps)) 2))

simplify45.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 0 (39.0ms)

IterNodesCost
05222886

prune139.0ms

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

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New66672
Fresh022
Picked011
Done000
Total66975

Merged error: 0.3b

Counts
75 → 9

localize17.0ms

Local error

Found 4 expressions with local error:

0.1b
(exp (cos (/ (+ x (+ x eps)) 2)))
0.3b
(* (sin (/ eps 2)) (log (exp (cos (/ (+ x (+ x eps)) 2)))))
0.5b
(log (exp (cos (/ (+ x (+ x eps)) 2))))
2.3b
(cos (/ (+ x (+ x eps)) 2))

rewrite37.0ms

Algorithm
rewrite-expression-head
Rules
14×add-sqr-sqrt
12×add-cube-cbrt *-un-lft-identity
log-prod exp-prod
pow1 log-pow
associate-*r*
add-exp-log add-cbrt-cube
add-log-exp
distribute-rgt-in distribute-lft-in associate-*l*
rem-log-exp pow-prod-down prod-exp *-commutative cbrt-unprod rem-exp-log unswap-sqr
Counts
4 → 61
Calls
4 calls:
7.0ms
(exp (cos (/ (+ x (+ x eps)) 2)))
14.0ms
(* (sin (/ eps 2)) (log (exp (cos (/ (+ x (+ x eps)) 2)))))
7.0ms
(log (exp (cos (/ (+ x (+ x eps)) 2))))
7.0ms
(cos (/ (+ x (+ x eps)) 2))

series30.0ms

Counts
4 → 12
Calls
4 calls:
9.0ms
(exp (cos (/ (+ x (+ x eps)) 2)))
10.0ms
(* (sin (/ eps 2)) (log (exp (cos (/ (+ x (+ x eps)) 2)))))
5.0ms
(log (exp (cos (/ (+ x (+ x eps)) 2))))
5.0ms
(cos (/ (+ x (+ x eps)) 2))

simplify46.0ms

Algorithm
egg-herbie
Counts
73 → 73
Iterations

Useful iterations: 0 (39.0ms)

IterNodesCost
05064940

prune156.0ms

Filtered
55 candidates to 73 candidates (-32.7%)
Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New73073
Fresh077
Picked011
Done011
Total73982

Merged error: 0.3b

Counts
82 → 9

localize14.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (cos (/ (+ x (+ x eps)) 2)) (* (sin (/ eps 2)) (sqrt 2)))
0.4b
(* (sin (/ eps 2)) (sqrt 2))
0.5b
(* (sqrt 2) (* (cos (/ (+ x (+ x eps)) 2)) (* (sin (/ eps 2)) (sqrt 2))))
2.3b
(cos (/ (+ x (+ x eps)) 2))

rewrite31.0ms

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

series49.0ms

Counts
4 → 12
Calls
4 calls:
19.0ms
(* (cos (/ (+ x (+ x eps)) 2)) (* (sin (/ eps 2)) (sqrt 2)))
5.0ms
(* (sin (/ eps 2)) (sqrt 2))
20.0ms
(* (sqrt 2) (* (cos (/ (+ x (+ x eps)) 2)) (* (sin (/ eps 2)) (sqrt 2))))
5.0ms
(cos (/ (+ x (+ x eps)) 2))

simplify53.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 0 (45.0ms)

IterNodesCost
049271100
149271100

prune144.0ms

Filtered
60 candidates to 83 candidates (-38.3%)
Pruning

10 alts after pruning (7 fresh and 3 done)

PrunedKeptTotal
New81283
Fresh156
Picked011
Done022
Total821092

Merged error: 0.3b

Counts
92 → 10

regimes172.0ms

Accuracy

99.5% (0.1b remaining)

Error of 0.4b against oracle of 0.3b and baseline of 15.2b

bsearch27.0ms

Steps
ItersRangePoint
1
2.120527876560294e-10
2.1947139214049714e-10
2.176167410193802e-10
5
-2.6358487214306052e-08
-1.0900084561437634e-08
-1.135616610718635e-08

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
04538
14538

end0.0ms

sample3.1s

Algorithm
intervals
Results
1.6s3292×body1280valid
606.0ms634×body2560valid
501.0ms1845×body640valid
153.0ms753×body320valid
72.0ms1122×body80valid
44.0ms354×body160valid

Profiling

Loading profile data...