Details

Time bar (total: 9.3s)

sample452.0ms

Algorithm
intervals
Results
98.0ms51×body2560valid
65.0ms102×body1280valid
18.0ms52×body640valid
5.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))

rewrite40.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:
13.0ms
(/ (- x (sin x)) (- x (tan x)))
3.0ms
(- x (tan x))
7.0ms
(- x (sin x))

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

simplify56.0ms

Algorithm
egg-herbie
Counts
119 → 119
Iterations

Useful iterations: 1 (12.0ms)

IterNodesCost
04721059
11737854
25001854

prune248.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.0b

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

rewrite22.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:
1.0ms
(pow (sin x) 2)
2.0ms
(pow (cos x) 2)
7.0ms
(/ (pow (sin x) 2) (* (pow x 2) (cos x)))
8.0ms
(/ (pow (sin x) 2) (* (pow x 2) (pow (cos x) 2)))

series164.0ms

Counts
4 → 12
Calls
4 calls:
18.0ms
(pow (sin x) 2)
16.0ms
(pow (cos x) 2)
57.0ms
(/ (pow (sin x) 2) (* (pow x 2) (cos x)))
72.0ms
(/ (pow (sin x) 2) (* (pow x 2) (pow (cos x) 2)))

simplify52.0ms

Algorithm
egg-herbie
Counts
156 → 156
Iterations

Useful iterations: 1 (11.0ms)

IterNodesCost
04341060
11840950
25001950

prune381.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.0b

localize10.0ms

Local error

Found 2 expressions with local error:

0.0b
(fma 27/2800 (pow x 4) 1/2)
18.8b
(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)))

series127.0ms

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

simplify147.0ms

Algorithm
egg-herbie
Counts
26 → 26
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
051133
1162117
2626117
33552117
45001117

prune71.0ms

Pruning

4 alts after pruning (2 fresh and 2 done)

Merged error: 0.0b

localize13.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (tan x) (tan x))
1.3b
(- (* x x) (* (tan x) (tan x)))
1.3b
(- x (sin x))
17.6b
(/ (- (* x x) (* (tan x) (tan x))) (+ x (tan x)))

rewrite26.0ms

Algorithm
rewrite-expression-head
Rules
37×*-un-lft-identity
29×add-sqr-sqrt
25×add-cube-cbrt
16×times-frac
11×pow1
10×prod-diff
add-exp-log add-cbrt-cube add-log-exp
difference-of-squares
distribute-lft-out
tan-quot expm1-log1p-u fma-neg associate-/r* log1p-expm1-u associate-/l*
flip3-- swap-sqr associate-*r* associate-*l* flip--
sub-neg diff-log associate-/r/ associate-/l/
cbrt-undiv pow2 frac-times frac-2neg flip3-+ pow-plus div-sub associate-*r/ div-exp pow-prod-down associate-*l/ prod-exp clear-num pow-sqr *-commutative pow-prod-up cbrt-unprod flip-+ div-inv distribute-lft-out-- unswap-sqr
Counts
4 → 118
Calls
4 calls:
5.0ms
(* (tan x) (tan x))
3.0ms
(- (* x x) (* (tan x) (tan x)))
3.0ms
(- x (sin x))
11.0ms
(/ (- (* x x) (* (tan x) (tan x))) (+ x (tan x)))

series295.0ms

Counts
4 → 12
Calls
4 calls:
31.0ms
(* (tan x) (tan x))
89.0ms
(- (* x x) (* (tan x) (tan x)))
30.0ms
(- x (sin x))
145.0ms
(/ (- (* x x) (* (tan x) (tan x))) (+ x (tan x)))

simplify69.0ms

Algorithm
egg-herbie
Counts
130 → 130
Iterations

Useful iterations: 2 (59.0ms)

IterNodesCost
04971072
12197909
25001904

prune277.0ms

Pruning

5 alts after pruning (2 fresh and 3 done)

Merged error: 0.0b

regimes41.0ms

Accuracy

99.1% (0.3b remaining)

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

bsearch97.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
04428
14428

end0.0ms

sample6.5s

Algorithm
intervals
Results
3.5s1569×body2560valid
1.9s2851×body1280valid
616.0ms1827×body640valid
207.0ms910×body320valid
71.0ms458×body160valid
35.0ms385×body80valid