Details

Time bar (total: 6.4s)

sample121.0ms

Algorithm
intervals
Results
57.0ms128×body1280valid
30.0ms31×body2560valid
18.0ms63×body640valid
4.0ms22×body320valid
1.0ms10×body160valid
0.0msbody80valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
094
1104
2104

prune4.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 41.9b

localize9.0ms

Local error

Found 2 expressions with local error:

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

rewrite13.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt *-un-lft-identity
add-cube-cbrt prod-diff
add-log-exp
fma-neg
pow1 add-exp-log expm1-log1p-u cos-sum add-cbrt-cube log1p-expm1-u
associate--l- sub-neg flip3-- diff-log flip-- diff-cos distribute-lft-out-- difference-of-squares
Counts
2 → 40
Calls
2 calls:
7.0ms
(- (cos (+ x eps)) (cos x))
4.0ms
(cos (+ x eps))

series19.0ms

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

simplify71.0ms

Algorithm
egg-herbie
Counts
46 → 46
Iterations

Useful iterations: 3 (67.0ms)

IterNodesCost
0192385
1523285
22519275
35001220

prune257.0ms

Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 15.6b

localize14.0ms

Local error

Found 3 expressions with local error:

0.1b
(* (cos x) (cos eps))
0.1b
(fma (sin x) (sin eps) (cos x))
2.3b
(- (* (cos x) (cos eps)) (fma (sin x) (sin eps) (cos x)))

rewrite9.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
expm1-log1p-u associate-*r* associate-*l* prod-diff log1p-expm1-u
fma-udef
sub-neg flip3-- fma-neg diff-log pow-prod-down prod-exp cos-mult *-commutative flip-- cbrt-unprod associate--r+ unswap-sqr
Counts
3 → 50
Calls
3 calls:
4.0ms
(* (cos x) (cos eps))
0.0ms
(fma (sin x) (sin eps) (cos x))
4.0ms
(- (* (cos x) (cos eps)) (fma (sin x) (sin eps) (cos x)))

series43.0ms

Counts
3 → 9
Calls
3 calls:
8.0ms
(* (cos x) (cos eps))
12.0ms
(fma (sin x) (sin eps) (cos x))
23.0ms
(- (* (cos x) (cos eps)) (fma (sin x) (sin eps) (cos x)))

simplify112.0ms

Algorithm
egg-herbie
Counts
59 → 59
Iterations

Useful iterations: 3 (107.0ms)

IterNodesCost
0235486
1832409
24494406
35001404

prune508.0ms

Pruning

18 alts after pruning (18 fresh and 0 done)

Merged error: 15.4b

localize15.0ms

Local error

Found 2 expressions with local error:

0.1b
(fma (sin x) (sin eps) (cos x))
2.3b
(fma (cos eps) (cos x) (- (fma (sin x) (sin eps) (cos x))))

rewrite1.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-exp-log add-sqr-sqrt expm1-log1p-u add-cube-cbrt *-un-lft-identity add-cbrt-cube fma-udef log1p-expm1-u add-log-exp
Counts
2 → 20
Calls
2 calls:
0.0ms
(fma (sin x) (sin eps) (cos x))
0.0ms
(fma (cos eps) (cos x) (- (fma (sin x) (sin eps) (cos x))))

series36.0ms

Counts
2 → 6
Calls
2 calls:
12.0ms
(fma (sin x) (sin eps) (cos x))
24.0ms
(fma (cos eps) (cos x) (- (fma (sin x) (sin eps) (cos x))))

simplify112.0ms

Algorithm
egg-herbie
Counts
26 → 26
Iterations

Useful iterations: 3 (24.0ms)

IterNodesCost
087209
1240182
2795182
33587180
45001180

prune322.0ms

Pruning

18 alts after pruning (18 fresh and 0 done)

Merged error: 15.4b

localize15.0ms

Local error

Found 3 expressions with local error:

0.2b
(* (sin x) (sin eps))
0.2b
(+ (* (sin x) (sin eps)) (cos x))
2.3b
(fma (cos eps) (cos x) (- (+ (* (sin x) (sin eps)) (cos x))))

rewrite10.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
pow1 add-exp-log add-cube-cbrt *-un-lft-identity add-cbrt-cube add-log-exp
expm1-log1p-u associate-*r* associate-*l* log1p-expm1-u
+-commutative fma-def flip3-+ pow-prod-down prod-exp sum-log *-commutative cbrt-unprod flip-+ fma-udef sin-mult unswap-sqr
Counts
3 → 45
Calls
3 calls:
4.0ms
(* (sin x) (sin eps))
4.0ms
(+ (* (sin x) (sin eps)) (cos x))
0.0ms
(fma (cos eps) (cos x) (- (+ (* (sin x) (sin eps)) (cos x))))

series43.0ms

Counts
3 → 9
Calls
3 calls:
8.0ms
(* (sin x) (sin eps))
11.0ms
(+ (* (sin x) (sin eps)) (cos x))
24.0ms
(fma (cos eps) (cos x) (- (+ (* (sin x) (sin eps)) (cos x))))

simplify75.0ms

Algorithm
egg-herbie
Counts
54 → 54
Iterations

Useful iterations: 3 (71.0ms)

IterNodesCost
0205378
1645339
22519338
35001336

prune383.0ms

Pruning

19 alts after pruning (18 fresh and 1 done)

Merged error: 15.4b

regimes442.0ms

Accuracy

86.2% (1.3b remaining)

Error of 16.3b against oracle of 14.9b and baseline of 24.5b

bsearch90.0ms

Steps
ItersRangePoint
10
9.316647860064626e-18
0.006665254470786589
4.819151863418274e-08
6
-1.8496456666423901e-16
-1.9909943074331788e-17
-1.8216181721535518e-16

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03726
14326
24326

end0.0ms

sample3.6s

Algorithm
intervals
Results
2.0s4473×body1280valid
661.0ms667×body2560valid
551.0ms1820×body640valid
141.0ms658×body320valid
52.0ms306×body160valid
10.0ms76×body80valid