Details

Time bar (total: 9.8s)

sample460.0ms

Algorithm
intervals
Results
101.0ms45×body2560valid
63.0ms85×body1280valid
27.0ms61×body640valid
10.0ms37×body320valid
3.0ms16×body160valid
1.0ms12×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

localize23.0ms

Local error

Found 3 expressions with local error:

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

rewrite23.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))
6.0ms
(- x (sin x))

series180.0ms

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

simplify153.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 1 (8.0ms)

IterNodesCost
0363718
11148685
24795685
35001685

prune211.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0b

localize9.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (sin x) (- x (tan x)))
0.7b
(- (/ x (- x (tan x))) (/ (sin x) (- x (tan x))))
1.0b
(- x (tan x))
1.0b
(- x (tan x))

rewrite66.0ms

Algorithm
rewrite-expression-head
Rules
54×*-un-lft-identity
44×add-sqr-sqrt
33×times-frac
18×distribute-lft-out--
16×add-cube-cbrt
12×difference-of-squares
10×add-log-exp
add-exp-log flip3-- associate-/r/ add-cbrt-cube flip--
associate-/r*
pow1
sub-neg distribute-rgt-out-- diff-log div-inv associate-/l*
cbrt-undiv frac-2neg div-exp clear-num frac-sub sub-div
Counts
4 → 94
Calls
4 calls:
6.0ms
(/ (sin x) (- x (tan x)))
52.0ms
(- (/ x (- x (tan x))) (/ (sin x) (- x (tan x))))
2.0ms
(- x (tan x))
2.0ms
(- x (tan x))

series355.0ms

Counts
4 → 12
Calls
4 calls:
63.0ms
(/ (sin x) (- x (tan x)))
184.0ms
(- (/ x (- x (tan x))) (/ (sin x) (- x (tan x))))
56.0ms
(- x (tan x))
51.0ms
(- x (tan x))

simplify39.0ms

Algorithm
egg-herbie
Counts
106 → 106
Iterations

Useful iterations: 1 (9.0ms)

IterNodesCost
0376909
11205872
25001872

prune250.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0b

localize12.0ms

Local error

Found 4 expressions with local error:

1.0b
(- x (tan x))
1.0b
(- x (sin x))
1.0b
(- x (sin x))
1.0b
(- x (sin x))

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt *-un-lft-identity add-log-exp
pow1 add-exp-log add-cube-cbrt sub-neg flip3-- diff-log add-cbrt-cube flip-- distribute-lft-out-- difference-of-squares
Counts
4 → 56
Calls
4 calls:
2.0ms
(- x (tan x))
3.0ms
(- x (sin x))
3.0ms
(- x (sin x))
3.0ms
(- x (sin x))

series156.0ms

Counts
4 → 12
Calls
4 calls:
51.0ms
(- x (tan x))
37.0ms
(- x (sin x))
32.0ms
(- x (sin x))
36.0ms
(- x (sin x))

simplify69.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 1 (5.0ms)

IterNodesCost
0150309
1342289
2774289
32023289
45001289

prune178.0ms

Pruning

3 alts after pruning (1 fresh and 2 done)

Merged error: 0b

localize10.0ms

Local error

Found 3 expressions with local error:

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

rewrite20.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:
5.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))

series118.0ms

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

simplify41.0ms

Algorithm
egg-herbie
Counts
75 → 75
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0273349
11123318
25001315

prune140.0ms

Pruning

3 alts after pruning (0 fresh and 3 done)

Merged error: 0b

regimes29.0ms

Accuracy

100% (0.0b remaining)

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

bsearch80.0ms

Steps
ItersRangePoint
8
0.003211336228265424
0.8894813891870064
0.031197100678935472
8
-1.3862719480695398
-4.2961337728369966e-05
-0.029017087826586654

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03014
13014

end0.0ms

sample7.1s

Algorithm
intervals
Results
3.8s1663×body2560valid
2.0s2781×body1280valid
744.0ms1871×body640valid
242.0ms878×body320valid
92.0ms464×body160valid
37.0ms343×body80valid