Details

Time bar (total: 5.1s)

sample94.0ms

Algorithm
intervals
Results
42.0ms106×body1280valid
22.0ms25×body2560valid
15.0ms61×body640valid
3.0ms20×body320valid
2.0ms32×body80valid
1.0ms12×body160valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
094
1104
2104

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 36.6b

localize9.0ms

Local error

Found 2 expressions with local error:

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

series65.0ms

Counts
2 → 6
Calls
2 calls:
46.0ms
(- (sin (+ x eps)) (sin x))
19.0ms
(sin (+ x eps))

simplify140.0ms

Algorithm
egg-herbie
Counts
30 → 30
Iterations

Useful iterations: 2 (10.0ms)

IterNodesCost
0133175
1301166
2937164
33445164
45001164

prune85.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 14.6b

localize15.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (sin x) (cos eps))
0.1b
(+ (* (sin x) (cos eps)) (* (cos x) (sin eps)))
0.2b
(* (cos x) (sin eps))
1.6b
(- (+ (* (sin x) (cos eps)) (* (cos x) (sin eps))) (sin x))

rewrite29.0ms

Algorithm
rewrite-expression-head
Rules
14×add-sqr-sqrt
11×add-log-exp
10×*-un-lft-identity
pow1 add-exp-log add-cube-cbrt add-cbrt-cube
associate-*r* associate-*l*
diff-log pow-prod-down prod-exp sum-log *-commutative cbrt-unprod unswap-sqr
+-commutative sub-neg flip3-- flip3-+ associate--l+ sin-cos-mult flip-- flip-+ distribute-lft-out-- difference-of-squares
Counts
4 → 64
Calls
4 calls:
5.0ms
(* (sin x) (cos eps))
6.0ms
(+ (* (sin x) (cos eps)) (* (cos x) (sin eps)))
4.0ms
(* (cos x) (sin eps))
12.0ms
(- (+ (* (sin x) (cos eps)) (* (cos x) (sin eps))) (sin x))

series292.0ms

Counts
4 → 12
Calls
4 calls:
45.0ms
(* (sin x) (cos eps))
89.0ms
(+ (* (sin x) (cos eps)) (* (cos x) (sin eps)))
43.0ms
(* (cos x) (sin eps))
114.0ms
(- (+ (* (sin x) (cos eps)) (* (cos x) (sin eps))) (sin x))

simplify43.0ms

Algorithm
egg-herbie
Counts
76 → 76
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
0308589
11168555
25001543

prune235.0ms

Pruning

12 alts after pruning (12 fresh and 0 done)

Merged error: 0.2b

localize15.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (sin x) (- (cos eps) 1))
0.2b
(+ (* (sin x) (- (cos eps) 1)) (* (cos x) (sin eps)))
0.2b
(* (cos x) (sin eps))
1.4b
(- (cos eps) 1)

rewrite27.0ms

Algorithm
rewrite-expression-head
Rules
20×add-sqr-sqrt
14×*-un-lft-identity
10×associate-*r*
pow1 add-exp-log add-cube-cbrt add-cbrt-cube add-log-exp
associate-*l*
sub-neg
distribute-rgt-in associate-+l+ distribute-lft-in difference-of-squares
flip3-- difference-of-sqr-1 associate-*r/ pow-prod-down prod-exp *-commutative flip-- cbrt-unprod distribute-lft-out-- unswap-sqr
+-commutative flip3-+ diff-log sum-log flip-+
Counts
4 → 77
Calls
4 calls:
8.0ms
(* (sin x) (- (cos eps) 1))
9.0ms
(+ (* (sin x) (- (cos eps) 1)) (* (cos x) (sin eps)))
4.0ms
(* (cos x) (sin eps))
4.0ms
(- (cos eps) 1)

series224.0ms

Counts
4 → 12
Calls
4 calls:
49.0ms
(* (sin x) (- (cos eps) 1))
110.0ms
(+ (* (sin x) (- (cos eps) 1)) (* (cos x) (sin eps)))
47.0ms
(* (cos x) (sin eps))
19.0ms
(- (cos eps) 1)

simplify45.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 2 (38.0ms)

IterNodesCost
0333552
11271503
25001501

prune253.0ms

Pruning

13 alts after pruning (13 fresh and 0 done)

Merged error: 0.1b

localize24.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (cos eps) (cos eps))
0.4b
(pow (cos eps) 3)
0.5b
(+ (* 1 1) (* (cos eps) 1))
1.2b
(- (pow (cos eps) 3) (pow 1 3))

rewrite28.0ms

Algorithm
rewrite-expression-head
Rules
43×add-sqr-sqrt
30×*-un-lft-identity
24×difference-of-squares
21×unpow-prod-down cube-prod
12×pow1
11×add-cube-cbrt sqr-pow
add-log-exp
add-exp-log add-cbrt-cube
distribute-lft-out--
pow-unpow swap-sqr associate-*r* associate-*l*
cube-mult
difference-cubes +-commutative pow2 pow-to-exp sub-neg sqr-cos distribute-rgt-out flip3-- pow-pow flip3-+ pow-plus diff-log unpow3 pow-prod-down pow-exp prod-exp sum-log pow-sqr cos-mult *-commutative pow-prod-up flip-- cbrt-unprod flip-+ rem-cube-cbrt unswap-sqr
Counts
4 → 105
Calls
4 calls:
4.0ms
(* (cos eps) (cos eps))
3.0ms
(pow (cos eps) 3)
5.0ms
(+ (* 1 1) (* (cos eps) 1))
12.0ms
(- (pow (cos eps) 3) (pow 1 3))

series110.0ms

Counts
4 → 12
Calls
4 calls:
17.0ms
(* (cos eps) (cos eps))
32.0ms
(pow (cos eps) 3)
10.0ms
(+ (* 1 1) (* (cos eps) 1))
51.0ms
(- (pow (cos eps) 3) (pow 1 3))

simplify68.0ms

Algorithm
egg-herbie
Counts
117 → 117
Iterations

Useful iterations: 2 (60.0ms)

IterNodesCost
0387551
11759480
25002447

prune321.0ms

Pruning

13 alts after pruning (12 fresh and 1 done)

Merged error: 0.1b

regimes117.0ms

Accuracy

0% (0.3b remaining)

Error of 0.4b against oracle of 0.1b and baseline of 0.4b

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02817
13317
23317

end0.0ms

sample2.9s

Algorithm
intervals
Results
1.4s3284×body1280valid
592.0ms636×body2560valid
456.0ms1789×body640valid
135.0ms810×body320valid
57.0ms1119×body80valid
39.0ms362×body160valid