Details

Time bar (total: 6.4s)

sample143.0ms

Algorithm
intervals
Results
69.0ms47×body2560valid
45.0ms98×body1280valid
13.0ms56×body640valid
5.0ms29×body320valid
2.0ms13×body160valid
1.0ms13×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: 30.7b

localize7.0ms

Local error

Found 2 expressions with local error:

0.2b
(/ (- 1.0 (cos x)) (sin x))
1.7b
(- 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))

series58.0ms

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

simplify79.0ms

Algorithm
egg-herbie
Counts
58 → 58
Iterations

Useful iterations: 1 (7.0ms)

IterNodesCost
0233396
1673373
22654373
35001373

prune144.0ms

Pruning

12 alts after pruning (12 fresh and 0 done)

Merged error: 0.2b

localize10.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ (- 1.0 (cos x)) (sin x))
0.2b
(exp (/ (- 1.0 (cos x)) (sin x)))
1.1b
(log (exp (/ (- 1.0 (cos x)) (sin x))))
1.7b
(- 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))
14.0ms
(exp (/ (- 1.0 (cos x)) (sin x)))
13.0ms
(log (exp (/ (- 1.0 (cos x)) (sin x))))
3.0ms
(- 1.0 (cos x))

series131.0ms

Counts
4 → 12
Calls
4 calls:
33.0ms
(/ (- 1.0 (cos x)) (sin x))
46.0ms
(exp (/ (- 1.0 (cos x)) (sin x)))
34.0ms
(log (exp (/ (- 1.0 (cos x)) (sin x))))
18.0ms
(- 1.0 (cos x))

simplify93.0ms

Algorithm
egg-herbie
Counts
124 → 124
Iterations

Useful iterations: 2 (21.0ms)

IterNodesCost
0303818
1799768
22970766
35001766

prune297.0ms

Pruning

14 alts after pruning (14 fresh and 0 done)

Merged error: 0.2b

localize13.0ms

Local error

Found 4 expressions with local error:

0.2b
(exp (log (- 1.0 (cos x))))
0.3b
(log (- 1.0 (cos x)))
1.1b
(log (exp (/ (exp (log (- 1.0 (cos x)))) (sin x))))
1.7b
(- 1.0 (cos x))

rewrite33.0ms

Algorithm
rewrite-expression-head
Rules
35×add-sqr-sqrt *-un-lft-identity
32×exp-prod
31×log-pow
28×log-prod
24×times-frac
23×add-cube-cbrt
20×exp-sum
pow1
distribute-lft-out-- add-log-exp difference-of-squares
add-exp-log
log-div add-cbrt-cube
flip3-- flip--
exp-diff rem-log-exp
sub-neg diff-log div-inv rem-exp-log
Counts
4 → 89
Calls
4 calls:
4.0ms
(exp (log (- 1.0 (cos x))))
3.0ms
(log (- 1.0 (cos x)))
21.0ms
(log (exp (/ (exp (log (- 1.0 (cos x)))) (sin x))))
3.0ms
(- 1.0 (cos x))

series151.0ms

Counts
4 → 12
Calls
4 calls:
24.0ms
(exp (log (- 1.0 (cos x))))
73.0ms
(log (- 1.0 (cos x)))
35.0ms
(log (exp (/ (exp (log (- 1.0 (cos x)))) (sin x))))
18.0ms
(- 1.0 (cos x))

simplify64.0ms

Algorithm
egg-herbie
Counts
101 → 101
Iterations

Useful iterations: 3 (56.0ms)

IterNodesCost
0302619
1710559
22016547
35001531

prune281.0ms

Pruning

15 alts after pruning (14 fresh and 1 done)

Merged error: 0.2b

localize8.0ms

Local error

Found 3 expressions with local error:

0.1b
(/ 1.0 (sin x))
0.2b
(/ (cos x) (sin x))
1.7b
(- (/ 1.0 (sin x)) (/ (cos x) (sin x)))

rewrite31.0ms

Algorithm
rewrite-expression-head
Rules
33×add-sqr-sqrt
29×*-un-lft-identity
28×times-frac
21×add-cube-cbrt
add-exp-log add-cbrt-cube
associate-/r* associate-/l*
add-log-exp
div-inv distribute-lft-out-- difference-of-squares
pow1
cbrt-undiv frac-2neg div-exp clear-num
sub-neg flip3-- distribute-rgt-out-- diff-log frac-sub flip-- sub-div
Counts
3 → 77
Calls
3 calls:
5.0ms
(/ 1.0 (sin x))
3.0ms
(/ (cos x) (sin x))
20.0ms
(- (/ 1.0 (sin x)) (/ (cos x) (sin x)))

series121.0ms

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

simplify57.0ms

Algorithm
egg-herbie
Counts
86 → 86
Iterations

Useful iterations: 3 (50.0ms)

IterNodesCost
0287581
1772552
22229552
35002551

prune175.0ms

Pruning

14 alts after pruning (13 fresh and 1 done)

Merged error: 0.2b

regimes149.0ms

Accuracy

98.1% (0.6b remaining)

Error of 0.7b against oracle of 0.1b and baseline of 30.4b

bsearch2.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04230
14230

end0.0ms

sample4.2s

Algorithm
intervals
Results
2.1s1593×body2560valid
1.2s2747×body1280valid
466.0ms1853×body640valid
168.0ms952×body320valid
58.0ms477×body160valid
39.0ms375×body80valid
13.0msbody5120valid