Details

Time bar (total: 6.9s)

analyze508.0ms

Algorithm
search

sample144.0ms

Algorithm
intervals
Results
70.0ms52×body2560valid
43.0ms86×body1280valid
16.0ms64×body640valid
4.0ms26×body320valid
2.0ms13×body160valid
1.0ms15×body80valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0114
1144
2164
3164

prune3.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 31.1b

Counts
2 → 1

localize7.0ms

Local error

Found 2 expressions with local error:

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

rewrite11.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:
6.0ms
(/ (- 1.0 (cos x)) (sin x))
3.0ms
(- 1.0 (cos x))

series10.0ms

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

simplify77.0ms

Algorithm
egg-herbie
Counts
58 → 58
Iterations

Useful iterations: 1 (6.0ms)

IterNodesCost
0233396
1673373
22640373
35002373

prune125.0ms

Filtered
42 candidates to 58 candidates (-38.1%)
Pruning

13 alts after pruning (13 fresh and 0 done)

PrunedKeptTotal
New451358
Fresh000
Picked101
Done000
Total461359

Merged error: 0.3b

Counts
59 → 13

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* 1/240 (pow x 5)) (* 1/2 x))
0.0b
(+ (* 1/24 (pow x 3)) (+ (* 1/240 (pow x 5)) (* 1/2 x)))
0.1b
(* 1/240 (pow x 5))
0.5b
(* 1/24 (pow x 3))

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
23×add-sqr-sqrt
19×associate-*r*
14×add-exp-log
11×add-cube-cbrt *-un-lft-identity add-log-exp
unpow-prod-down add-cbrt-cube
unswap-sqr
associate-*l* prod-exp
pow1 cube-prod sum-log sqr-pow
+-commutative pow-to-exp flip3-+ pow-exp *-commutative cbrt-unprod flip-+
cube-mult associate-+r+ unpow3
Counts
4 → 80
Calls
4 calls:
4.0ms
(+ (* 1/240 (pow x 5)) (* 1/2 x))
8.0ms
(+ (* 1/24 (pow x 3)) (+ (* 1/240 (pow x 5)) (* 1/2 x)))
5.0ms
(* 1/240 (pow x 5))
6.0ms
(* 1/24 (pow x 3))

series25.0ms

Counts
4 → 12
Calls
4 calls:
11.0ms
(+ (* 1/240 (pow x 5)) (* 1/2 x))
6.0ms
(+ (* 1/24 (pow x 3)) (+ (* 1/240 (pow x 5)) (* 1/2 x)))
4.0ms
(* 1/240 (pow x 5))
4.0ms
(* 1/24 (pow x 3))

simplify52.0ms

Algorithm
egg-herbie
Counts
92 → 92
Iterations

Useful iterations: 2 (44.0ms)

IterNodesCost
0355458
11538429
25002428

prune165.0ms

Filtered
59 candidates to 92 candidates (-55.9%)
Pruning

13 alts after pruning (12 fresh and 1 done)

PrunedKeptTotal
New92092
Fresh01212
Picked011
Done000
Total9213105

Merged error: 0.3b

Counts
105 → 13

localize8.0ms

Local error

Found 3 expressions with local error:

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

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
30×add-sqr-sqrt
24×*-un-lft-identity
20×times-frac
19×add-cube-cbrt
16×add-exp-log
13×associate-*r*
10×add-cbrt-cube
pow1
associate-*l* add-log-exp
div-exp prod-exp
flip3-- associate-/r* flip-- associate-/l* unswap-sqr
cbrt-undiv frac-times rec-exp 1-exp associate-*l/ cbrt-unprod div-inv distribute-lft-out-- difference-of-squares
sub-neg pow-flip frac-2neg diff-log associate-*r/ pow-prod-down clear-num un-div-inv *-commutative inv-pow
Counts
3 → 87
Calls
3 calls:
3.0ms
(/ 1 (sin x))
10.0ms
(* (- 1.0 (cos x)) (/ 1 (sin x)))
3.0ms
(- 1.0 (cos x))

series16.0ms

Counts
3 → 9
Calls
3 calls:
4.0ms
(/ 1 (sin x))
9.0ms
(* (- 1.0 (cos x)) (/ 1 (sin x)))
3.0ms
(- 1.0 (cos x))

simplify41.0ms

Algorithm
egg-herbie
Counts
96 → 96
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
0320546
11393480
25001454

prune121.0ms

Filtered
57 candidates to 96 candidates (-68.4%)
Pruning

16 alts after pruning (15 fresh and 1 done)

PrunedKeptTotal
New90696
Fresh2911
Picked101
Done011
Total9316109

Merged error: 0.3b

Counts
109 → 16

localize12.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (exp (log (- 1.0 (cos x)))) (/ 1 (sin x)))
0.2b
(log (- 1.0 (cos x)))
0.3b
(exp (log (- 1.0 (cos x))))
2.8b
(- 1.0 (cos x))

rewrite27.0ms

Algorithm
rewrite-expression-head
Rules
38×add-sqr-sqrt
26×*-un-lft-identity
18×log-prod
16×add-cube-cbrt
13×times-frac associate-*r* exp-sum
10×add-exp-log
add-cbrt-cube
pow1 log-div associate-*l*
exp-diff add-log-exp unswap-sqr
flip3-- flip--
exp-prod prod-exp distribute-lft-out-- difference-of-squares
frac-times div-exp associate-*l/ log-pow cbrt-unprod
cbrt-undiv sub-neg rec-exp diff-log 1-exp associate-*r/ rem-log-exp pow-prod-down un-div-inv *-commutative div-inv rem-exp-log
Counts
4 → 97
Calls
4 calls:
12.0ms
(* (exp (log (- 1.0 (cos x)))) (/ 1 (sin x)))
3.0ms
(log (- 1.0 (cos x)))
4.0ms
(exp (log (- 1.0 (cos x))))
4.0ms
(- 1.0 (cos x))

series26.0ms

Counts
4 → 12
Calls
4 calls:
8.0ms
(* (exp (log (- 1.0 (cos x)))) (/ 1 (sin x)))
13.0ms
(log (- 1.0 (cos x)))
3.0ms
(exp (log (- 1.0 (cos x))))
3.0ms
(- 1.0 (cos x))

simplify45.0ms

Algorithm
egg-herbie
Counts
109 → 109
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
0381701
11383625
25001609

prune125.0ms

Filtered
72 candidates to 109 candidates (-51.4%)
Pruning

14 alts after pruning (13 fresh and 1 done)

PrunedKeptTotal
New1018109
Fresh9514
Picked101
Done011
Total11114125

Merged error: 0.3b

Counts
125 → 14

regimes177.0ms

Accuracy

99% (0.3b remaining)

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

bsearch48.0ms

Steps
ItersRangePoint
8
0.02157265737145759
486.56193610373157
0.022015772071504337
9
-2214.7112569607552
-0.0007921003653238374
-0.022861107563872385

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03413
13413

end0.0ms

analyze505.0ms

Algorithm
search

sample4.5s

Algorithm
intervals
Results
2.3s1570×body2560valid
1.3s2711×body1280valid
484.0ms1913×body640valid
179.0ms920×body320valid
68.0ms522×body160valid
38.0msbody5120valid
27.0ms356×body80valid

Profiling

Loading profile data...