Details

Time bar (total: 9.1s)

sample452.0ms

Algorithm
intervals
Results
99.0ms51×body2560valid
66.0ms102×body1280valid
18.0ms52×body640valid
6.0ms22×body320valid
4.0ms16×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: 31.3b

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

rewrite35.0ms

Algorithm
rewrite-expression-head
Rules
43×add-sqr-sqrt *-un-lft-identity
25×times-frac
15×add-cube-cbrt
14×distribute-lft-out-- difference-of-squares
add-log-exp
add-exp-log associate-/r* add-cbrt-cube associate-/l*
flip3-- flip--
pow1
sub-neg diff-log associate-/r/ associate-/l/
cbrt-undiv frac-2neg div-sub div-exp clear-num div-inv
Counts
3 → 80
Calls
3 calls:
11.0ms
(/ (- x (sin x)) (- x (tan x)))
2.0ms
(- x (tan x))
5.0ms
(- x (sin x))

series178.0ms

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

simplify154.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 1 (9.0ms)

IterNodesCost
0363718
11148685
24795685
35001685

prune207.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.0b

localize25.0ms

Local error

Found 4 expressions with local error:

0.2b
(pow (sin x) 2)
0.3b
(pow (cos x) 2)
15.0b
(/ (pow (sin x) 2) (* (pow x 2) (cos x)))
15.0b
(/ (pow (sin x) 2) (* (pow x 2) (pow (cos x) 2)))

rewrite21.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 add-log-exp
pow-pow frac-2neg clear-num associate-/r* cbrt-unprod div-inv
Counts
4 → 136
Calls
4 calls:
1.0ms
(pow (sin x) 2)
1.0ms
(pow (cos x) 2)
6.0ms
(/ (pow (sin x) 2) (* (pow x 2) (cos x)))
8.0ms
(/ (pow (sin x) 2) (* (pow x 2) (pow (cos x) 2)))

series170.0ms

Counts
4 → 12
Calls
4 calls:
19.0ms
(pow (sin x) 2)
16.0ms
(pow (cos x) 2)
59.0ms
(/ (pow (sin x) 2) (* (pow x 2) (cos x)))
76.0ms
(/ (pow (sin x) 2) (* (pow x 2) (pow (cos x) 2)))

simplify50.0ms

Algorithm
egg-herbie
Counts
148 → 148
Iterations

Useful iterations: 1 (10.0ms)

IterNodesCost
04101022
11777914
25001914

prune342.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.0b

localize10.0ms

Local error

Found 3 expressions with local error:

0.1b
(* 27/2800 (pow x 4))
0.1b
(* 9/40 (pow x 2))
18.8b
(- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2))

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
20×add-sqr-sqrt
15×associate-*r*
13×add-exp-log
add-cube-cbrt *-un-lft-identity
unpow-prod-down add-log-exp
add-cbrt-cube unswap-sqr
associate-*l* prod-exp
sqr-pow
pow1
pow-to-exp diff-log pow-exp *-commutative cbrt-unprod unpow2
sub-neg flip3-- sum-log flip-- associate--r+
Counts
3 → 66
Calls
3 calls:
6.0ms
(* 27/2800 (pow x 4))
6.0ms
(* 9/40 (pow x 2))
8.0ms
(- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2))

series111.0ms

Counts
3 → 9
Calls
3 calls:
39.0ms
(* 27/2800 (pow x 4))
25.0ms
(* 9/40 (pow x 2))
47.0ms
(- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2))

simplify43.0ms

Algorithm
egg-herbie
Counts
75 → 75
Iterations

Useful iterations: 2 (37.0ms)

IterNodesCost
0273349
11123318
25001315

prune144.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.0b

localize10.0ms

Local error

Found 3 expressions with local error:

0.1b
(* 27/2800 (pow x 4))
0.1b
(* 9/40 (pow x 2))
18.8b
(- (* 9/40 (pow x 2)) (* 27/2800 (pow x 4)))

rewrite18.0ms

Algorithm
rewrite-expression-head
Rules
20×add-sqr-sqrt
15×associate-*r*
13×add-exp-log
add-cube-cbrt *-un-lft-identity
unpow-prod-down
add-cbrt-cube unswap-sqr
associate-*l* prod-exp
add-log-exp
sqr-pow
pow1
pow-to-exp pow-exp *-commutative cbrt-unprod unpow2
sub-neg flip3-- diff-log flip--
Counts
3 → 64
Calls
3 calls:
7.0ms
(* 27/2800 (pow x 4))
6.0ms
(* 9/40 (pow x 2))
3.0ms
(- (* 9/40 (pow x 2)) (* 27/2800 (pow x 4)))

series169.0ms

Counts
3 → 9
Calls
3 calls:
38.0ms
(* 27/2800 (pow x 4))
25.0ms
(* 9/40 (pow x 2))
106.0ms
(- (* 9/40 (pow x 2)) (* 27/2800 (pow x 4)))

simplify41.0ms

Algorithm
egg-herbie
Counts
73 → 73
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
0249310
11003281
25001275

prune137.0ms

Pruning

4 alts after pruning (2 fresh and 2 done)

Merged error: 0.0b

regimes34.0ms

Accuracy

99.1% (0.3b remaining)

Error of 0.3b against oracle of 0.0b and baseline of 31.8b

bsearch104.0ms

Steps
ItersRangePoint
8
0.2287861600326909
251.47950061764826
2.430037265334258
10
-578421416.8415484
-0.03925098124715615
-2.435414209138285

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04729
14729

end0.0ms

sample6.6s

Algorithm
intervals
Results
3.5s1569×body2560valid
1.9s2851×body1280valid
629.0ms1827×body640valid
242.0ms910×body320valid
89.0ms458×body160valid
36.0ms385×body80valid