Details

Time bar (total: 4.4s)

analyze2.0ms

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

sample105.0ms

Algorithm
intervals
Results
47.0ms104×body1280valid
24.0ms21×body2560valid
18.0ms69×body640valid
4.0ms22×body320valid
2.0ms28×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: 37.8b

Counts
2 → 1

localize9.0ms

Local error

Found 2 expressions with local error:

1.6b
(- (sin (+ x eps)) (sin x))
2.6b
(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))

series14.0ms

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

simplify43.0ms

Algorithm
egg-herbie
Counts
29 → 29
Iterations

Useful iterations: 0 (40.0ms)

IterNodesCost
05348268

prune54.0ms

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

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New24529
Fresh000
Picked101
Done000
Total25530

Merged error: 0.2b

Counts
30 → 5

localize13.0ms

Local error

Found 3 expressions with local error:

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

rewrite21.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))
8.0ms
(* (sin (/ eps 2)) (cos (/ (+ x (+ x eps)) 2)))
7.0ms
(cos (/ (+ x (+ x eps)) 2))

series20.0ms

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

simplify57.0ms

Algorithm
egg-herbie
Counts
50 → 50
Iterations

Useful iterations: 0 (52.0ms)

IterNodesCost
05169541

prune108.0ms

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

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New45550
Fresh134
Picked011
Done000
Total46955

Merged error: 0.2b

Counts
55 → 9

localize16.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (sin (/ eps 2)) (cbrt (pow (cos (/ (+ x (+ x eps)) 2)) 3)))
0.5b
(cbrt (pow (cos (/ (+ x (+ x eps)) 2)) 3))
0.6b
(pow (cos (/ (+ x (+ x eps)) 2)) 3)
2.7b
(cos (/ (+ x (+ x eps)) 2))

rewrite22.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
(cbrt (pow (cos (/ (+ x (+ x eps)) 2)) 3))
2.0ms
(pow (cos (/ (+ x (+ x eps)) 2)) 3)
7.0ms
(cos (/ (+ x (+ x eps)) 2))

series33.0ms

Counts
4 → 12
Calls
4 calls:
10.0ms
(* (sin (/ eps 2)) (cbrt (pow (cos (/ (+ x (+ x eps)) 2)) 3)))
5.0ms
(cbrt (pow (cos (/ (+ x (+ x eps)) 2)) 3))
12.0ms
(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

prune154.0ms

Filtered
56 candidates to 97 candidates (-73.2%)
Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New96197
Fresh167
Picked011
Done011
Total979106

Merged error: 0.2b

Counts
106 → 9

localize16.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.7b
(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)))
12.0ms
(* (sin (/ eps 2)) (log (exp (cos (/ (+ x (+ x eps)) 2)))))
8.0ms
(log (exp (cos (/ (+ x (+ x eps)) 2))))
9.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))

simplify45.0ms

Algorithm
egg-herbie
Counts
73 → 73
Iterations

Useful iterations: 0 (38.0ms)

IterNodesCost
05064940

prune123.0ms

Filtered
53 candidates to 73 candidates (-37.7%)
Pruning

9 alts after pruning (7 fresh and 2 done)

PrunedKeptTotal
New71273
Fresh156
Picked101
Done022
Total73982

Merged error: 0.2b

Counts
82 → 9

regimes258.0ms

Accuracy

97.1% (0.4b remaining)

Error of 0.7b against oracle of 0.3b and baseline of 14.8b

bsearch75.0ms

Steps
ItersRangePoint
9
1.3472611376282578e-34
1.758468545048918e-25
1.7278717375445562e-25
9
-117615.3612092743
-0.00010668323082749249
-0.0001084741578760162

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
04538
14538

end0.0ms

sample3.1s

Algorithm
intervals
Results
1.5s3270×body1280valid
617.0ms636×body2560valid
532.0ms1889×body640valid
153.0ms807×body320valid
63.0ms1066×body80valid
41.0ms332×body160valid

Profiling

Loading profile data...