Details

Time bar (total: 6.9s)

sample138.0ms

Algorithm
intervals
Results
65.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))

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

series59.0ms

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

simplify37.0ms

Algorithm
egg-herbie
Counts
74 → 74
Iterations

Useful iterations: 1 (8.0ms)

IterNodesCost
0292569
1965460
25002460

prune179.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))

rewrite45.0ms

Algorithm
rewrite-expression-head
Rules
62×add-sqr-sqrt *-un-lft-identity
45×times-frac
40×add-cube-cbrt
38×exp-prod
20×log-pow
11×distribute-lft-out-- difference-of-squares
prod-diff
add-log-exp
add-exp-log add-cbrt-cube
pow1 associate-/l*
expm1-log1p-u log1p-expm1-u
log-prod fma-neg 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 → 132
Calls
4 calls:
9.0ms
(/ (- 1.0 (cos x)) (sin x))
12.0ms
(exp (/ (- 1.0 (cos x)) (sin x)))
12.0ms
(log (exp (/ (- 1.0 (cos x)) (sin x))))
7.0ms
(- 1.0 (cos x))

series137.0ms

Counts
4 → 12
Calls
4 calls:
38.0ms
(/ (- 1.0 (cos x)) (sin x))
42.0ms
(exp (/ (- 1.0 (cos x)) (sin x)))
39.0ms
(log (exp (/ (- 1.0 (cos x)) (sin x))))
18.0ms
(- 1.0 (cos x))

simplify41.0ms

Algorithm
egg-herbie
Counts
144 → 144
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
03681009
11099873
25002871

prune346.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))

rewrite35.0ms

Algorithm
rewrite-expression-head
Rules
42×add-sqr-sqrt *-un-lft-identity
32×exp-prod
31×log-pow
30×add-cube-cbrt
28×log-prod
24×times-frac
20×exp-sum
prod-diff
pow1
distribute-lft-out-- add-log-exp difference-of-squares
add-exp-log
expm1-log1p-u log-div add-cbrt-cube log1p-expm1-u
flip3-- fma-neg flip--
exp-diff rem-log-exp
sub-neg diff-log div-inv rem-exp-log
Counts
4 → 109
Calls
4 calls:
3.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))

series153.0ms

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

simplify130.0ms

Algorithm
egg-herbie
Counts
121 → 121
Iterations

Useful iterations: 3 (121.0ms)

IterNodesCost
0367813
1961664
23989643
35001640

prune342.0ms

Pruning

14 alts after pruning (14 fresh and 0 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)))

rewrite52.0ms

Algorithm
rewrite-expression-head
Rules
271×times-frac
222×add-sqr-sqrt
218×*-un-lft-identity
210×add-cube-cbrt
169×prod-diff
31×div-inv
13×fma-neg
add-exp-log add-cbrt-cube
associate-/r* associate-/l*
add-log-exp
distribute-lft-out-- difference-of-squares
pow1 expm1-log1p-u log1p-expm1-u
cbrt-undiv frac-2neg div-exp clear-num
sub-neg flip3-- distribute-rgt-out-- diff-log frac-sub flip-- sub-div
Counts
3 → 265
Calls
3 calls:
6.0ms
(/ 1.0 (sin x))
3.0ms
(/ (cos x) (sin x))
25.0ms
(- (/ 1.0 (sin x)) (/ (cos x) (sin x)))

series123.0ms

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

simplify93.0ms

Algorithm
egg-herbie
Counts
274 → 274
Iterations

Useful iterations: 2 (49.0ms)

IterNodesCost
08107180
122345060
250014434

prune337.0ms

Pruning

16 alts after pruning (16 fresh and 0 done)

Merged error: 0.2b

regimes172.0ms

Accuracy

98.1% (0.6b remaining)

Error of 0.8b against oracle of 0.2b and baseline of 30.4b

bsearch2.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03426
13426

end0.0ms

sample4.5s

Algorithm
intervals
Results
2.1s1593×body2560valid
1.4s2747×body1280valid
469.0ms1853×body640valid
161.0ms952×body320valid
58.0ms477×body160valid
36.0ms375×body80valid
13.0msbody5120valid