Details

Time bar (total: 6.6s)

sample130.0ms

Algorithm
intervals
Results
58.0ms46×body2560valid
43.0ms94×body1280valid
15.0ms66×body640valid
5.0ms33×body320valid
1.0msbody160valid
1.0msbody80valid

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: 31.0b

localize7.0ms

Local error

Found 2 expressions with local error:

0.2b
(/ (- 1.0 (cos x)) (sin x))
1.8b
(- 1.0 (cos x))

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
22×add-sqr-sqrt *-un-lft-identity
15×times-frac
12×add-cube-cbrt
associate-/l* distribute-lft-out-- difference-of-squares
add-exp-log add-cbrt-cube add-log-exp
associate-/r*
pow1 flip3-- flip-- associate-/l/
cbrt-undiv sub-neg frac-2neg diff-log div-sub div-exp clear-num div-inv
Counts
2 → 52
Calls
2 calls:
8.0ms
(/ (- 1.0 (cos x)) (sin x))
3.0ms
(- 1.0 (cos x))

series61.0ms

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

simplify79.0ms

Algorithm
egg-herbie
Counts
58 → 58
Iterations

Useful iterations: 1 (6.0ms)

IterNodesCost
0233396
1673373
22654373
35001373

prune153.0ms

Pruning

13 alts after pruning (13 fresh and 0 done)

Merged error: 0.1b

localize10.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ (- 1.0 (cos x)) (sin x))
0.3b
(exp (/ (- 1.0 (cos x)) (sin x)))
1.2b
(log (exp (/ (- 1.0 (cos x)) (sin x))))
1.8b
(- 1.0 (cos x))

rewrite42.0ms

Algorithm
rewrite-expression-head
Rules
55×add-sqr-sqrt *-un-lft-identity
45×times-frac
38×exp-prod
33×add-cube-cbrt
20×log-pow
11×distribute-lft-out-- difference-of-squares
add-log-exp
add-exp-log add-cbrt-cube
pow1 associate-/l*
log-prod div-sub associate-/r* div-inv
flip3-- exp-diff flip-- associate-/l/
cbrt-undiv sub-neg log-div frac-2neg diff-log div-exp rem-log-exp clear-num rem-exp-log
Counts
4 → 112
Calls
4 calls:
8.0ms
(/ (- 1.0 (cos x)) (sin x))
11.0ms
(exp (/ (- 1.0 (cos x)) (sin x)))
13.0ms
(log (exp (/ (- 1.0 (cos x)) (sin x))))
6.0ms
(- 1.0 (cos x))

series143.0ms

Counts
4 → 12
Calls
4 calls:
42.0ms
(/ (- 1.0 (cos x)) (sin x))
43.0ms
(exp (/ (- 1.0 (cos x)) (sin x)))
40.0ms
(log (exp (/ (- 1.0 (cos x)) (sin x))))
19.0ms
(- 1.0 (cos x))

simplify87.0ms

Algorithm
egg-herbie
Counts
124 → 124
Iterations

Useful iterations: 2 (20.0ms)

IterNodesCost
0303818
1799768
22970766
35001766

prune315.0ms

Pruning

13 alts after pruning (13 fresh and 0 done)

Merged error: 0.1b

localize9.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (/ (sqrt (- 1.0 (cos x))) (sin x)) (sqrt (- 1.0 (cos x))))
0.2b
(/ (sqrt (- 1.0 (cos x))) (sin x))
1.8b
(- 1.0 (cos x))
1.8b
(- 1.0 (cos x))

rewrite49.0ms

Algorithm
rewrite-expression-head
Rules
74×add-sqr-sqrt
58×*-un-lft-identity
52×times-frac
45×sqrt-prod
38×add-cube-cbrt
28×associate-*l*
11×add-exp-log add-cbrt-cube
10×distribute-lft-out-- difference-of-squares
associate-*r* associate-/l* add-log-exp
pow1 sqrt-div unswap-sqr
flip3-- flip--
associate-/r*
cbrt-undiv frac-times sub-neg diff-log associate-*r/ div-exp prod-exp cbrt-unprod div-inv associate-/l/
frac-2neg pow-prod-down associate-*l/ clear-num *-commutative
Counts
4 → 137
Calls
4 calls:
30.0ms
(* (/ (sqrt (- 1.0 (cos x))) (sin x)) (sqrt (- 1.0 (cos x))))
8.0ms
(/ (sqrt (- 1.0 (cos x))) (sin x))
3.0ms
(- 1.0 (cos x))
3.0ms
(- 1.0 (cos x))

series175.0ms

Counts
4 → 12
Calls
4 calls:
35.0ms
(* (/ (sqrt (- 1.0 (cos x))) (sin x)) (sqrt (- 1.0 (cos x))))
99.0ms
(/ (sqrt (- 1.0 (cos x))) (sin x))
18.0ms
(- 1.0 (cos x))
23.0ms
(- 1.0 (cos x))

simplify56.0ms

Algorithm
egg-herbie
Counts
149 → 149
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
04211360
116921214
250011188

prune354.0ms

Pruning

14 alts after pruning (13 fresh and 1 done)

Merged error: 0.1b

localize10.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ (- 1.0 (cos x)) (sin x))
0.3b
(cbrt (pow (/ (- 1.0 (cos x)) (sin x)) 3))
0.4b
(pow (/ (- 1.0 (cos x)) (sin x)) 3)
1.8b
(- 1.0 (cos x))

rewrite38.0ms

Algorithm
rewrite-expression-head
Rules
86×add-sqr-sqrt *-un-lft-identity
75×times-frac
52×add-cube-cbrt
44×cbrt-prod
38×unpow-prod-down cube-prod
17×distribute-lft-out-- difference-of-squares
add-exp-log add-cbrt-cube
add-log-exp
pow1 div-inv associate-/l*
pow-unpow associate-/r*
cbrt-undiv cube-div cube-mult flip3-- unpow3 div-exp pow-exp flip-- associate-/l/ rem-cube-cbrt sqr-pow
pow-to-exp sub-neg cbrt-div pow-pow frac-2neg pow1/3 diff-log div-sub clear-num rem-cbrt-cube
Counts
4 → 164
Calls
4 calls:
8.0ms
(/ (- 1.0 (cos x)) (sin x))
9.0ms
(cbrt (pow (/ (- 1.0 (cos x)) (sin x)) 3))
8.0ms
(pow (/ (- 1.0 (cos x)) (sin x)) 3)
3.0ms
(- 1.0 (cos x))

series159.0ms

Counts
4 → 12
Calls
4 calls:
35.0ms
(/ (- 1.0 (cos x)) (sin x))
36.0ms
(cbrt (pow (/ (- 1.0 (cos x)) (sin x)) 3))
68.0ms
(pow (/ (- 1.0 (cos x)) (sin x)) 3)
19.0ms
(- 1.0 (cos x))

simplify69.0ms

Algorithm
egg-herbie
Counts
176 → 176
Iterations

Useful iterations: 2 (49.0ms)

IterNodesCost
05311510
122781417
250021401

prune287.0ms

Pruning

13 alts after pruning (12 fresh and 1 done)

Merged error: 0.1b

regimes125.0ms

Accuracy

98.7% (0.4b remaining)

Error of 0.6b against oracle of 0.2b and baseline of 30.2b

bsearch82.0ms

Steps
ItersRangePoint
9
2.0114125408603258e-10
0.4954286465087044
0.02145283746761365
10
-1.7081313977704333
-1.7977825652338532e-10
-0.019990581307716814

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03724
13724

end0.0ms

sample4.1s

Algorithm
intervals
Results
2.1s1621×body2560valid
1.2s2805×body1280valid
428.0ms1822×body640valid
142.0ms909×body320valid
56.0ms469×body160valid
23.0ms370×body80valid
13.0msbody5120valid