Details

Time bar (total: 9.5s)

sample470.0ms

Algorithm
intervals
Results
116.0ms50×body2560valid
57.0ms85×body1280valid
18.0ms53×body640valid
8.0ms37×body320valid
3.0ms19×body160valid
1.0ms12×body80valid

simplify11.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0135
1175
2195
3195

prune4.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 34.3b

localize11.0ms

Local error

Found 3 expressions with local error:

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

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

series173.0ms

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

simplify153.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 1 (9.0ms)

IterNodesCost
0363718
11148685
24795685
35001685

prune209.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0b

localize13.0ms

Local error

Found 3 expressions with local error:

0.1b
(* 27/2800 (pow x 4))
0.1b
(* 9/40 (pow x 2))
12.0b
(- (* 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))
5.0ms
(* 9/40 (pow x 2))
8.0ms
(- (* 9/40 (pow x 2)) (+ (* 27/2800 (pow x 4)) 1/2))

series107.0ms

Counts
3 → 9
Calls
3 calls:
35.0ms
(* 27/2800 (pow x 4))
27.0ms
(* 9/40 (pow x 2))
45.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

prune146.0ms

Pruning

4 alts after pruning (2 fresh and 2 done)

Merged error: 0b

localize12.0ms

Local error

Found 4 expressions with local error:

2.0b
(- x (tan x))
2.0b
(- x (sin x))
2.0b
(- x (sin x))
2.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))

series147.0ms

Counts
4 → 12
Calls
4 calls:
52.0ms
(- x (tan x))
31.0ms
(- x (sin x))
31.0ms
(- x (sin x))
34.0ms
(- x (sin x))

simplify68.0ms

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 1 (5.0ms)

IterNodesCost
0150309
1342289
2774289
32023289
45001289

prune181.0ms

Pruning

4 alts after pruning (1 fresh and 3 done)

Merged error: 0b

localize18.0ms

Local error

Found 4 expressions with local error:

0.3b
(pow (sin x) 3)
2.0b
(- x (tan x))
2.0b
(- (pow x 3) (pow (sin x) 3))
16.8b
(/ (- (pow x 3) (pow (sin x) 3)) (* (+ (* (sin x) (+ (sin x) x)) (pow x 2)) (- x (tan x))))

rewrite81.0ms

Algorithm
rewrite-expression-head
Rules
83×add-sqr-sqrt
49×difference-of-squares
41×*-un-lft-identity
39×unpow-prod-down cube-prod
25×times-frac associate-/l* sqr-pow
16×distribute-lft-out--
10×add-exp-log add-cbrt-cube
add-cube-cbrt
associate-/r/ add-log-exp
flip3-- flip--
pow1
frac-times
difference-cubes pow-unpow flip3-+ flip-+
cbrt-undiv sub-neg diff-log associate-*r/ div-exp associate-*l/ associate-/l/
cube-mult pow-to-exp pow-pow frac-2neg unpow3 div-sub pow-exp prod-exp clear-num associate-/r* cbrt-unprod div-inv rem-cube-cbrt
Counts
4 → 147
Calls
4 calls:
2.0ms
(pow (sin x) 3)
3.0ms
(- x (tan x))
15.0ms
(- (pow x 3) (pow (sin x) 3))
55.0ms
(/ (- (pow x 3) (pow (sin x) 3)) (* (+ (* (sin x) (+ (sin x) x)) (pow x 2)) (- x (tan x))))

series441.0ms

Counts
4 → 12
Calls
4 calls:
30.0ms
(pow (sin x) 3)
55.0ms
(- x (tan x))
102.0ms
(- (pow x 3) (pow (sin x) 3))
254.0ms
(/ (- (pow x 3) (pow (sin x) 3)) (* (+ (* (sin x) (+ (sin x) x)) (pow x 2)) (- x (tan x))))

simplify97.0ms

Algorithm
egg-herbie
Counts
159 → 159
Iterations

Useful iterations: 2 (74.0ms)

IterNodesCost
06301900
130221778
250021734

prune404.0ms

Pruning

4 alts after pruning (0 fresh and 4 done)

Merged error: 0b

regimes57.0ms

Accuracy

100% (0.0b remaining)

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

bsearch89.0ms

Steps
ItersRangePoint
10
7.712829756242493e-08
8770343.893451896
0.028954196312268393
9
-1827977.1926269082
-0.00043085380315138777
-0.028975567409347768

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02911
12911

end0.0ms

sample6.5s

Algorithm
intervals
Results
3.6s1621×body2560valid
1.8s2664×body1280valid
659.0ms1932×body640valid
221.0ms938×body320valid
75.0ms472×body160valid
35.0ms373×body80valid