Details

Time bar (total: 3.4s)

sample53.0ms

Algorithm
intervals
Results
25.0ms57×body2560valid
9.0ms41×body1280valid
8.0ms59×body640valid
2.0ms23×body320valid
2.0ms63×body80valid
1.0ms13×body160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0134
1214
2264
3284
4284

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 32.9b

localize6.0ms

Local error

Found 2 expressions with local error:

1.2b
(- 1.0 (cos x))
17.7b
(/ (- 1.0 (cos x)) (* x x))

rewrite14.0ms

Algorithm
rewrite-expression-head
Rules
17×add-sqr-sqrt *-un-lft-identity
11×add-cube-cbrt
prod-diff
add-exp-log add-cbrt-cube
times-frac associate-/l*
add-log-exp
fma-neg distribute-lft-out-- difference-of-squares
pow1 cbrt-undiv expm1-log1p-u flip3-- div-exp flip-- log1p-expm1-u associate-/l/
sub-neg frac-2neg diff-log div-sub prod-exp clear-num associate-/r* cbrt-unprod div-inv
Counts
2 → 58
Calls
2 calls:
3.0ms
(- 1.0 (cos x))
9.0ms
(/ (- 1.0 (cos x)) (* x x))

series64.0ms

Counts
2 → 6
Calls
2 calls:
17.0ms
(- 1.0 (cos x))
47.0ms
(/ (- 1.0 (cos x)) (* x x))

simplify31.0ms

Algorithm
egg-herbie
Counts
64 → 64
Iterations

Useful iterations: 2 (26.0ms)

IterNodesCost
0279446
11006326
25001317

prune124.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 0.1b

localize9.0ms

Local error

Found 2 expressions with local error:

0.4b
(* 1/24 (pow x 2))
11.6b
(fma (pow x 4) 1/720 (- 1/2 (* 1/24 (pow x 2))))

rewrite7.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt
associate-*r*
add-exp-log
add-cube-cbrt *-un-lft-identity
unpow-prod-down add-cbrt-cube unswap-sqr
associate-*l* prod-exp
pow1 expm1-log1p-u log1p-expm1-u unpow2 add-log-exp sqr-pow
pow-to-exp pow-exp *-commutative cbrt-unprod fma-udef
Counts
2 → 39
Calls
2 calls:
5.0ms
(* 1/24 (pow x 2))
0.0ms
(fma (pow x 4) 1/720 (- 1/2 (* 1/24 (pow x 2))))

series67.0ms

Counts
2 → 6
Calls
2 calls:
27.0ms
(* 1/24 (pow x 2))
40.0ms
(fma (pow x 4) 1/720 (- 1/2 (* 1/24 (pow x 2))))

simplify103.0ms

Algorithm
egg-herbie
Counts
45 → 45
Iterations

Useful iterations: 3 (99.0ms)

IterNodesCost
0139194
1532171
22601171
35001170

prune100.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 0.1b

localize7.0ms

Local error

Found 3 expressions with local error:

0.1b
(/ (- 1.0 (cos x)) x)
0.1b
(* (/ 1 x) (/ (- 1.0 (cos x)) x))
1.2b
(- 1.0 (cos x))

rewrite37.0ms

Algorithm
rewrite-expression-head
Rules
69×add-sqr-sqrt
54×*-un-lft-identity
46×times-frac
36×add-cube-cbrt
27×add-exp-log
19×associate-*r*
17×add-cbrt-cube
13×associate-*l*
div-exp prod-diff
prod-exp distribute-lft-out-- difference-of-squares
unswap-sqr
pow1 cbrt-undiv associate-/l* add-log-exp
cbrt-unprod
expm1-log1p-u fma-neg associate-/r* log1p-expm1-u div-inv
rec-exp flip3-- 1-exp flip-- associate-/l/
frac-times sub-neg frac-2neg diff-log div-sub associate-*r/ pow-prod-down associate-*l/ clear-num *-commutative
Counts
3 → 132
Calls
3 calls:
8.0ms
(/ (- 1.0 (cos x)) x)
21.0ms
(* (/ 1 x) (/ (- 1.0 (cos x)) x))
3.0ms
(- 1.0 (cos x))

series101.0ms

Counts
3 → 9
Calls
3 calls:
40.0ms
(/ (- 1.0 (cos x)) x)
44.0ms
(* (/ 1 x) (/ (- 1.0 (cos x)) x))
17.0ms
(- 1.0 (cos x))

simplify72.0ms

Algorithm
egg-herbie
Counts
141 → 141
Iterations

Useful iterations: 2 (58.0ms)

IterNodesCost
0582999
12640823
25001787

prune229.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 0.1b

localize11.0ms

Local error

Found 4 expressions with local error:

0.1b
(log1p (expm1 (- 1.0 (cos x))))
0.1b
(* (/ 1 x) (/ (log1p (expm1 (- 1.0 (cos x)))) x))
0.2b
(expm1 (- 1.0 (cos x)))
1.2b
(- 1.0 (cos x))

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
44×add-sqr-sqrt
29×*-un-lft-identity
26×add-exp-log
25×add-cube-cbrt times-frac
16×add-cbrt-cube
13×associate-*r* associate-*l*
prod-diff
div-exp prod-exp
pow1 add-log-exp unswap-sqr
log1p-expm1-u
cbrt-undiv expm1-log1p-u cbrt-unprod
fma-neg
rec-exp 1-exp div-inv
frac-times sub-neg log1p-udef expm1-log1p flip3-- diff-log log1p-expm1 associate-*r/ pow-prod-down associate-*l/ *-commutative flip-- distribute-lft-out-- expm1-udef difference-of-squares
Counts
4 → 108
Calls
4 calls:
0.0ms
(log1p (expm1 (- 1.0 (cos x))))
13.0ms
(* (/ 1 x) (/ (log1p (expm1 (- 1.0 (cos x)))) x))
0.0ms
(expm1 (- 1.0 (cos x)))
3.0ms
(- 1.0 (cos x))

series407.0ms

Counts
4 → 12
Calls
4 calls:
140.0ms
(log1p (expm1 (- 1.0 (cos x))))
187.0ms
(* (/ 1 x) (/ (log1p (expm1 (- 1.0 (cos x)))) x))
59.0ms
(expm1 (- 1.0 (cos x)))
21.0ms
(- 1.0 (cos x))

simplify64.0ms

Algorithm
egg-herbie
Counts
120 → 120
Iterations

Useful iterations: 2 (50.0ms)

IterNodesCost
0500928
12205692
25001635

prune210.0ms

Pruning

10 alts after pruning (8 fresh and 2 done)

Merged error: 0.1b

regimes47.0ms

Accuracy

99.6% (0.1b remaining)

Error of 0.2b against oracle of 0.1b and baseline of 31.5b

bsearch70.0ms

Steps
ItersRangePoint
10
5.968040026638966e-05
117627206.70733242
0.024083451253618247
10
-64880754058.88788
-2.651420353119469e-05
-0.02660967226737158

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
03216
13216

end0.0ms

sample1.5s

Algorithm
intervals
Results
757.0ms1660×body2560valid
277.0ms1248×body1280valid
197.0ms1448×body640valid
96.0ms918×body320valid
69.0ms2275×body80valid
31.0ms451×body160valid