Details

Time bar (total: 9.3s)

sample545.0ms

Algorithm
intervals
Results
146.0ms49×body2560valid
64.0ms88×body1280valid
20.0ms62×body640valid
5.0ms24×body320valid
3.0ms20×body160valid
1.0ms13×body80valid

simplify10.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0135
1175
2195
3195

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 33.2b

localize11.0ms

Local error

Found 3 expressions with local error:

0.0b
(/ (- x (sin x)) (- x (tan x)))
1.3b
(- x (tan x))
1.3b
(- x (sin x))

rewrite54.0ms

Algorithm
rewrite-expression-head
Rules
57×add-sqr-sqrt *-un-lft-identity
29×add-cube-cbrt
25×times-frac
18×prod-diff
14×distribute-lft-out-- difference-of-squares
add-log-exp
fma-neg
add-exp-log associate-/r* add-cbrt-cube associate-/l*
flip3-- flip--
pow1 expm1-log1p-u log1p-expm1-u
sub-neg diff-log associate-/r/ associate-/l/
cbrt-undiv frac-2neg div-sub div-exp clear-num div-inv
Counts
3 → 110
Calls
3 calls:
32.0ms
(/ (- x (sin x)) (- x (tan x)))
6.0ms
(- x (tan x))
10.0ms
(- x (sin x))

series177.0ms

Counts
3 → 9
Calls
3 calls:
76.0ms
(/ (- x (sin x)) (- x (tan x)))
59.0ms
(- x (tan x))
42.0ms
(- x (sin x))

simplify55.0ms

Algorithm
egg-herbie
Counts
119 → 119
Iterations

Useful iterations: 1 (11.0ms)

IterNodesCost
04721059
11737854
25001854

prune237.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0b

localize10.0ms

Local error

Found 2 expressions with local error:

0.0b
(fma 27/2800 (pow x 4) 1/2)
13.1b
(fma 9/40 (pow x 2) (- (fma 27/2800 (pow x 4) 1/2)))

rewrite1.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:
0.0ms
(fma 27/2800 (pow x 4) 1/2)
0.0ms
(fma 9/40 (pow x 2) (- (fma 27/2800 (pow x 4) 1/2)))

series131.0ms

Counts
2 → 6
Calls
2 calls:
84.0ms
(fma 27/2800 (pow x 4) 1/2)
46.0ms
(fma 9/40 (pow x 2) (- (fma 27/2800 (pow x 4) 1/2)))

simplify143.0ms

Algorithm
egg-herbie
Counts
26 → 26
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
051133
1162117
2626117
33552117
45001117

prune74.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0b

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(log1p (expm1 (/ (- x (sin x)) (- x (tan x)))))
0.5b
(expm1 (/ (- x (sin x)) (- x (tan x))))
1.3b
(- x (tan x))
1.3b
(- x (sin x))

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
22×add-sqr-sqrt *-un-lft-identity
18×add-cube-cbrt prod-diff
add-log-exp
fma-neg
log1p-expm1-u
pow1 add-exp-log expm1-log1p-u add-cbrt-cube
sub-neg flip3-- diff-log flip-- distribute-lft-out-- difference-of-squares
log1p-udef expm1-log1p log1p-expm1 expm1-udef
Counts
4 → 78
Calls
4 calls:
0.0ms
(log1p (expm1 (/ (- x (sin x)) (- x (tan x)))))
0.0ms
(expm1 (/ (- x (sin x)) (- x (tan x))))
7.0ms
(- x (tan x))
8.0ms
(- x (sin x))

series351.0ms

Counts
4 → 12
Calls
4 calls:
159.0ms
(log1p (expm1 (/ (- x (sin x)) (- x (tan x)))))
106.0ms
(expm1 (/ (- x (sin x)) (- x (tan x))))
54.0ms
(- x (tan x))
32.0ms
(- x (sin x))

simplify46.0ms

Algorithm
egg-herbie
Counts
90 → 90
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
0442803
11633588
25002580

prune199.0ms

Pruning

4 alts after pruning (2 fresh and 2 done)

Merged error: 0b

localize26.0ms

Local error

Found 4 expressions with local error:

0.2b
(pow (sin x) 2)
0.2b
(pow (cos x) 2)
13.9b
(/ (pow (sin x) 2) (* (pow x 2) (pow (cos x) 2)))
13.9b
(/ (pow (sin x) 2) (* (pow x 2) (cos x)))

rewrite44.0ms

Algorithm
rewrite-expression-head
Rules
91×add-exp-log
42×div-exp
37×pow-to-exp pow-exp
36×prod-exp
18×unpow-prod-down
16×add-sqr-sqrt add-cube-cbrt *-un-lft-identity times-frac associate-/l*
14×add-cbrt-cube
pow1 pow-unpow unpow2 sqr-pow
cbrt-undiv expm1-log1p-u log1p-expm1-u add-log-exp
pow-pow frac-2neg clear-num associate-/r* cbrt-unprod div-inv
Counts
4 → 144
Calls
4 calls:
3.0ms
(pow (sin x) 2)
3.0ms
(pow (cos x) 2)
17.0ms
(/ (pow (sin x) 2) (* (pow x 2) (pow (cos x) 2)))
15.0ms
(/ (pow (sin x) 2) (* (pow x 2) (cos x)))

series171.0ms

Counts
4 → 12
Calls
4 calls:
19.0ms
(pow (sin x) 2)
17.0ms
(pow (cos x) 2)
74.0ms
(/ (pow (sin x) 2) (* (pow x 2) (pow (cos x) 2)))
61.0ms
(/ (pow (sin x) 2) (* (pow x 2) (cos x)))

simplify49.0ms

Algorithm
egg-herbie
Counts
156 → 156
Iterations

Useful iterations: 1 (10.0ms)

IterNodesCost
04341060
11839950
25002950

prune367.0ms

Pruning

4 alts after pruning (1 fresh and 3 done)

Merged error: 0b

regimes62.0ms

Accuracy

100% (0.0b remaining)

Error of 0.0b against oracle of 0.0b and baseline of 31.9b

bsearch69.0ms

Steps
ItersRangePoint
8
1.317141247235427e-05
0.43775957865898985
0.030711477964933176
9
-3096.4512561506854
-0.0006592480666379122
-0.0237917079813031

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02712
12712

end0.0ms

sample6.5s

Algorithm
intervals
Results
3.4s1576×body2560valid
1.9s2742×body1280valid
640.0ms1897×body640valid
222.0ms966×body320valid
70.0ms460×body160valid
34.0ms359×body80valid