Details

Time bar (total: 6.4s)

sample129.0ms

Algorithm
intervals
Results
66.0ms50×body2560valid
36.0ms87×body1280valid
11.0ms51×body640valid
6.0ms38×body320valid
2.0ms20×body160valid
1.0ms10×body80valid

simplify6.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0114
1144
2164
3164

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 33.2b

localize11.0ms

Local error

Found 2 expressions with local error:

0.1b
(/ (- 1.0 (cos x)) (sin x))
2.5b
(- 1.0 (cos x))

rewrite14.0ms

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

series54.0ms

Counts
2 → 6
Calls
2 calls:
35.0ms
(/ (- 1.0 (cos x)) (sin x))
19.0ms
(- 1.0 (cos x))

simplify35.0ms

Algorithm
egg-herbie
Counts
74 → 74
Iterations

Useful iterations: 1 (7.0ms)

IterNodesCost
0292569
1965460
25002460

prune185.0ms

Pruning

11 alts after pruning (11 fresh and 0 done)

Merged error: 0.3b

localize10.0ms

Local error

Found 2 expressions with local error:

0.0b
(fma 1/24 (pow x 3) (fma 1/240 (pow x 5) (* 1/2 x)))
0.0b
(fma 1/240 (pow x 5) (* 1/2 x))

rewrite2.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:
1.0ms
(fma 1/24 (pow x 3) (fma 1/240 (pow x 5) (* 1/2 x)))
1.0ms
(fma 1/240 (pow x 5) (* 1/2 x))

series178.0ms

Counts
2 → 6
Calls
2 calls:
59.0ms
(fma 1/24 (pow x 3) (fma 1/240 (pow x 5) (* 1/2 x)))
119.0ms
(fma 1/240 (pow x 5) (* 1/2 x))

simplify33.0ms

Algorithm
egg-herbie
Counts
26 → 26
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
061148
1188130
21009130
35002130

prune97.0ms

Pruning

11 alts after pruning (10 fresh and 1 done)

Merged error: 0.3b

localize8.0ms

Local error

Found 3 expressions with local error:

0.1b
(/ 1 (/ (sin x) (- 1.0 (cos x))))
0.2b
(/ (sin x) (- 1.0 (cos x)))
2.5b
(- 1.0 (cos x))

rewrite29.0ms

Algorithm
rewrite-expression-head
Rules
138×times-frac
112×add-sqr-sqrt *-un-lft-identity
78×add-cube-cbrt
26×associate-/r*
17×distribute-lft-out-- difference-of-squares
16×add-exp-log
11×associate-/r/
10×add-cbrt-cube
prod-diff
div-exp
flip3-- flip-- div-inv associate-/l*
add-log-exp
pow1 cbrt-undiv
expm1-log1p-u fma-neg log1p-expm1-u
rec-exp frac-2neg 1-exp clear-num
sub-neg pow-flip diff-log inv-pow
Counts
3 → 177
Calls
3 calls:
9.0ms
(/ 1 (/ (sin x) (- 1.0 (cos x))))
7.0ms
(/ (sin x) (- 1.0 (cos x)))
4.0ms
(- 1.0 (cos x))

series93.0ms

Counts
3 → 9
Calls
3 calls:
34.0ms
(/ 1 (/ (sin x) (- 1.0 (cos x))))
40.0ms
(/ (sin x) (- 1.0 (cos x)))
18.0ms
(- 1.0 (cos x))

simplify66.0ms

Algorithm
egg-herbie
Counts
186 → 186
Iterations

Useful iterations: 2 (51.0ms)

IterNodesCost
05721779
126361549
250011441

prune297.0ms

Pruning

14 alts after pruning (12 fresh and 2 done)

Merged error: 0.3b

localize9.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ 1 (sin x))
0.1b
(/ 1 (- 1.0 (cos x)))
0.2b
(/ (/ 1 (sin x)) (/ 1 (- 1.0 (cos x))))
2.5b
(- 1.0 (cos x))

rewrite63.0ms

Algorithm
rewrite-expression-head
Rules
705×times-frac
403×add-sqr-sqrt *-un-lft-identity
309×add-cube-cbrt
52×add-exp-log
47×distribute-lft-out-- difference-of-squares
39×div-inv
36×div-exp
31×associate-/r/
29×associate-/r*
20×add-cbrt-cube
19×associate-/l*
16×flip3-- flip--
10×cbrt-undiv rec-exp 1-exp
prod-diff
pow1 add-log-exp
expm1-log1p-u log1p-expm1-u
frac-2neg fma-neg clear-num
pow-flip inv-pow
sub-neg diff-log associate-/l/
Counts
4 → 445
Calls
4 calls:
4.0ms
(/ 1 (sin x))
5.0ms
(/ 1 (- 1.0 (cos x)))
16.0ms
(/ (/ 1 (sin x)) (/ 1 (- 1.0 (cos x))))
5.0ms
(- 1.0 (cos x))

series99.0ms

Counts
4 → 12
Calls
4 calls:
13.0ms
(/ 1 (sin x))
27.0ms
(/ 1 (- 1.0 (cos x)))
41.0ms
(/ (/ 1 (sin x)) (/ 1 (- 1.0 (cos x))))
18.0ms
(- 1.0 (cos x))

simplify87.0ms

Algorithm
egg-herbie
Counts
457 → 457
Iterations

Useful iterations: 1 (34.0ms)

IterNodesCost
017055786
150015085

prune615.0ms

Pruning

14 alts after pruning (12 fresh and 2 done)

Merged error: 0.3b

regimes126.0ms

Accuracy

99% (0.3b remaining)

Error of 0.5b against oracle of 0.2b and baseline of 32.5b

bsearch80.0ms

Steps
ItersRangePoint
10
7.712829756242493e-08
8770343.893451896
0.020393739459838457
9
-1827977.1926269082
-0.00043085380315138777
-0.022144219019054306

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03824
13824

end0.0ms

sample4.1s

Algorithm
intervals
Results
2.1s1613×body2560valid
1.2s2670×body1280valid
440.0ms1933×body640valid
146.0ms941×body320valid
57.0ms478×body160valid
23.0ms363×body80valid
11.0msbody5120valid