Details

Time bar (total: 10.9s)

sample529.0ms

Algorithm
intervals
Results
100.0ms47×body2560valid
55.0ms86×body1280valid
46.0ms74×body640valid
4.0ms21×body320valid
2.0ms13×body160valid
1.0ms15×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: 28.5b

localize11.0ms

Local error

Found 3 expressions with local error:

0.0b
(/ (- x (sin x)) (- x (tan x)))
1.1b
(- x (sin x))
1.4b
(- x (tan x))

rewrite57.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:
35.0ms
(/ (- x (sin x)) (- x (tan x)))
8.0ms
(- x (sin x))
9.0ms
(- x (tan x))

series179.0ms

Counts
3 → 9
Calls
3 calls:
78.0ms
(/ (- x (sin x)) (- x (tan x)))
37.0ms
(- x (sin x))
64.0ms
(- x (tan x))

simplify54.0ms

Algorithm
egg-herbie
Counts
119 → 119
Iterations

Useful iterations: 1 (11.0ms)

IterNodesCost
04721059
11737854
25001854

prune232.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0.0b

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ (- x (tan x)) (- x (sin x)))
0.0b
(/ 1 (/ (- x (tan x)) (- x (sin x))))
1.1b
(- x (sin x))
1.4b
(- x (tan x))

rewrite86.0ms

Algorithm
rewrite-expression-head
Rules
218×times-frac
214×add-sqr-sqrt *-un-lft-identity
106×add-cube-cbrt
54×distribute-lft-out-- difference-of-squares
36×associate-/r*
18×prod-diff
17×add-exp-log
11×associate-/r/ add-cbrt-cube
flip3-- div-exp flip-- associate-/l* add-log-exp
fma-neg div-inv
pow1
cbrt-undiv expm1-log1p-u log1p-expm1-u
sub-neg rec-exp frac-2neg diff-log 1-exp clear-num associate-/l/
pow-flip div-sub inv-pow
Counts
4 → 260
Calls
4 calls:
28.0ms
(/ (- x (tan x)) (- x (sin x)))
27.0ms
(/ 1 (/ (- x (tan x)) (- x (sin x))))
8.0ms
(- x (sin x))
8.0ms
(- x (tan x))

series240.0ms

Counts
4 → 12
Calls
4 calls:
77.0ms
(/ (- x (tan x)) (- x (sin x)))
76.0ms
(/ 1 (/ (- x (tan x)) (- x (sin x))))
32.0ms
(- x (sin x))
51.0ms
(- x (tan x))

simplify102.0ms

Algorithm
egg-herbie
Counts
272 → 272
Iterations

Useful iterations: 2 (80.0ms)

IterNodesCost
08563002
139932620
250012457

prune405.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.0b

localize11.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ (tan x) (- x (sin x)))
1.1b
(- (/ x (- x (sin x))) (/ (tan x) (- x (sin x))))
1.1b
(- x (sin x))
1.1b
(- x (sin x))

rewrite207.0ms

Algorithm
rewrite-expression-head
Rules
713×*-un-lft-identity
703×add-sqr-sqrt
678×times-frac
459×prod-diff
417×add-cube-cbrt
147×distribute-lft-out--
141×difference-of-squares
92×associate-/r/
49×flip3-- flip--
46×div-inv
27×fma-neg
10×add-log-exp
add-exp-log add-cbrt-cube
associate-/r*
pow1 expm1-log1p-u log1p-expm1-u
sub-neg distribute-rgt-out-- diff-log associate-/l*
tan-quot cbrt-undiv frac-2neg div-exp clear-num frac-sub associate-/l/ sub-div
Counts
4 → 589
Calls
4 calls:
15.0ms
(/ (tan x) (- x (sin x)))
119.0ms
(- (/ x (- x (sin x))) (/ (tan x) (- x (sin x))))
8.0ms
(- x (sin x))
8.0ms
(- x (sin x))

series253.0ms

Counts
4 → 12
Calls
4 calls:
55.0ms
(/ (tan x) (- x (sin x)))
129.0ms
(- (/ x (- x (sin x))) (/ (tan x) (- x (sin x))))
37.0ms
(- x (sin x))
31.0ms
(- x (sin x))

simplify203.0ms

Algorithm
egg-herbie
Counts
601 → 601
Iterations

Useful iterations: 2 (81.0ms)

IterNodesCost
0134222028
1381515786
2500115720

prune1.0s

Pruning

4 alts after pruning (2 fresh and 2 done)

Merged error: 0.0b

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(- (- (* 9/10 (pow x 2))) (fma 513/1400 (pow x 4) 2))
0.0b
(fma 513/1400 (pow x 4) 2)
0.0b
(/ 1 (- (- (* 9/10 (pow x 2))) (fma 513/1400 (pow x 4) 2)))
0.1b
(* 9/10 (pow x 2))

rewrite56.0ms

Algorithm
rewrite-expression-head
Rules
43×add-sqr-sqrt
37×*-un-lft-identity
27×add-cube-cbrt
18×prod-diff
15×times-frac
13×add-exp-log
associate-*r* add-cbrt-cube add-log-exp
fma-neg
pow1 associate-/r* distribute-lft-out-- difference-of-squares
distribute-lft-neg-in expm1-log1p-u neg-mul-1 unpow-prod-down distribute-rgt-neg-in log1p-expm1-u unswap-sqr
associate-*l* prod-exp associate-/l*
flip3-- diff-log div-exp associate-/r/ flip-- fma-udef unpow2 sqr-pow
cbrt-undiv associate--l- neg-sub0 pow-to-exp sub-neg rec-exp pow-flip frac-2neg 1-exp neg-log pow-exp clear-num *-commutative cbrt-unprod div-inv associate--r+ inv-pow
Counts
4 → 125
Calls
4 calls:
17.0ms
(- (- (* 9/10 (pow x 2))) (fma 513/1400 (pow x 4) 2))
0.0ms
(fma 513/1400 (pow x 4) 2)
23.0ms
(/ 1 (- (- (* 9/10 (pow x 2))) (fma 513/1400 (pow x 4) 2)))
13.0ms
(* 9/10 (pow x 2))

series211.0ms

Counts
4 → 12
Calls
4 calls:
43.0ms
(- (- (* 9/10 (pow x 2))) (fma 513/1400 (pow x 4) 2))
83.0ms
(fma 513/1400 (pow x 4) 2)
60.0ms
(/ 1 (- (- (* 9/10 (pow x 2))) (fma 513/1400 (pow x 4) 2)))
25.0ms
(* 9/10 (pow x 2))

simplify63.0ms

Algorithm
egg-herbie
Counts
137 → 137
Iterations

Useful iterations: 2 (50.0ms)

IterNodesCost
04211324
11774989
25001946

prune255.0ms

Pruning

5 alts after pruning (3 fresh and 2 done)

Merged error: 0b

regimes40.0ms

Accuracy

99.9% (0.0b remaining)

Error of 0.1b against oracle of 0.0b and baseline of 31.5b

bsearch68.0ms

Steps
ItersRangePoint
8
0.002806896206153352
41.96612619086958
0.015291166436094373
7
-0.5149414008252181
-0.002950799818357885
-0.01665811831216181

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03824
14024
24024

end0.0ms

sample6.6s

Algorithm
intervals
Results
3.6s1653×body2560valid
1.8s2759×body1280valid
613.0ms1836×body640valid
203.0ms916×body320valid
72.0ms478×body160valid
32.0ms358×body80valid