Details

Time bar (total: 8.8s)

sample444.0ms

Algorithm
intervals
Results
128.0ms64×body2560valid
47.0ms91×body1280valid
12.0ms50×body640valid
4.0ms26×body320valid
2.0ms15×body160valid
1.0ms10×body80valid

simplify12.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0135
1175
2195
3195

prune4.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 33.5b

Counts
2 → 1

localize11.0ms

Local error

Found 3 expressions with local error:

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

rewrite13.0ms

Algorithm
rewrite-expression-head
Rules
flip3-- flip--
sub-neg associate-/r/ associate-/l/
frac-2neg div-sub clear-num div-inv
Counts
3 → 16
Calls
3 calls:
4.0ms
(/ (- x (sin x)) (- x (tan x)))
2.0ms
(- x (tan x))
5.0ms
(- x (sin x))

series191.0ms

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

simplify65.0ms

Algorithm
egg-herbie
Counts
25 → 25
Iterations

Useful iterations: 1 (6.0ms)

IterNodesCost
0219172
1719167
22394167
35001167

prune74.0ms

Filtered
25 candidates to 19 candidates (76.0%)
Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New22325
Fresh000
Picked011
Done000
Total22426

Merged error: 0.1b

Counts
26 → 4

localize10.0ms

Local error

Found 2 expressions with local error:

0.1b
(fma 27/2800 (pow x 4) 1/2)
16.1b
(fma 9/40 (pow x 2) (- (fma 27/2800 (pow x 4) 1/2)))

rewrite2.0ms

Algorithm
rewrite-expression-head
Rules
fma-udef
Counts
2 → 2
Calls
2 calls:
1.0ms
(fma 27/2800 (pow x 4) 1/2)
1.0ms
(fma 9/40 (pow x 2) (- (fma 27/2800 (pow x 4) 1/2)))

series136.0ms

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

simplify196.0ms

Algorithm
egg-herbie
Counts
8 → 8
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
02825
18725
224525
379925
4407925
5500125

prune11.0ms

Filtered
8 candidates to 2 candidates (25.0%)
Pruning

4 alts after pruning (2 fresh and 2 done)

PrunedKeptTotal
New808
Fresh022
Picked011
Done011
Total8412

Merged error: 0.1b

Counts
12 → 4

localize12.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (tan x) (tan x))
0.8b
(- (* x x) (* (tan x) (tan x)))
0.9b
(- x (sin x))
15.0b
(/ (- (* x x) (* (tan x) (tan x))) (+ x (tan x)))

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
14×*-commutative
difference-of-squares
tan-quot prod-diff associate-/l*
flip3-- flip--
sub-neg fma-neg associate-/r/ associate-/l/
pow2 frac-times frac-2neg flip3-+ div-sub associate-*r/ associate-*l/ clear-num flip-+ div-inv
Counts
4 → 35
Calls
4 calls:
3.0ms
(* (tan x) (tan x))
5.0ms
(- (* x x) (* (tan x) (tan x)))
2.0ms
(- x (sin x))
7.0ms
(/ (- (* x x) (* (tan x) (tan x))) (+ x (tan x)))

series303.0ms

Counts
4 → 12
Calls
4 calls:
36.0ms
(* (tan x) (tan x))
86.0ms
(- (* x x) (* (tan x) (tan x)))
32.0ms
(- x (sin x))
148.0ms
(/ (- (* x x) (* (tan x) (tan x))) (+ x (tan x)))

simplify92.0ms

Algorithm
egg-herbie
Counts
47 → 47
Iterations

Useful iterations: 3 (87.0ms)

IterNodesCost
0257296
1903279
23204269
35003266

prune94.0ms

Filtered
47 candidates to 27 candidates (57.4%)
Pruning

4 alts after pruning (2 fresh and 2 done)

PrunedKeptTotal
New46147
Fresh011
Picked101
Done022
Total47451

Merged error: 0.1b

Counts
51 → 4

localize13.0ms

Local error

Found 4 expressions with local error:

0.9b
(- (/ (* x x) (+ x (tan x))) (/ (* (tan x) (tan x)) (+ x (tan x))))
0.9b
(- x (sin x))
16.6b
(/ (* (tan x) (tan x)) (+ x (tan x)))
31.4b
(/ (* x x) (+ x (tan x)))

rewrite29.0ms

Algorithm
rewrite-expression-head
Rules
40×frac-sub
30×associate-/l*
24×tan-quot
22×associate-/r/
18×associate-/l/
17×frac-2neg
15×clear-num *-commutative
11×flip3-+ flip-+ div-inv
prod-diff
frac-times associate-*r/ associate-*l/
distribute-rgt-out-- fma-neg
sub-neg flip3-- flip-- sub-div
Counts
4 → 82
Calls
4 calls:
13.0ms
(- (/ (* x x) (+ x (tan x))) (/ (* (tan x) (tan x)) (+ x (tan x))))
2.0ms
(- x (sin x))
6.0ms
(/ (* (tan x) (tan x)) (+ x (tan x)))
4.0ms
(/ (* x x) (+ x (tan x)))

series378.0ms

Counts
4 → 12
Calls
4 calls:
241.0ms
(- (/ (* x x) (+ x (tan x))) (/ (* (tan x) (tan x)) (+ x (tan x))))
32.0ms
(- x (sin x))
61.0ms
(/ (* (tan x) (tan x)) (+ x (tan x)))
44.0ms
(/ (* x x) (+ x (tan x)))

simplify98.0ms

Algorithm
egg-herbie
Counts
94 → 94
Iterations

Useful iterations: 2 (84.0ms)

IterNodesCost
07491639
137581499
250031479

prune247.0ms

Filtered
94 candidates to 67 candidates (71.3%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New91394
Fresh011
Picked101
Done112
Total93598

Merged error: 0.0b

Counts
98 → 5

regimes41.0ms

Accuracy

99.3% (0.2b remaining)

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

bsearch99.0ms

Steps
ItersRangePoint
9
0.09117784756913819
2697524.489058797
2.373452251774501
10
-1421.6155834850151
-1.485944467815708e-07
-2.3608879863652965

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03926
13926

end0.0ms

sample6.2s

Algorithm
intervals
Results
3.9s1643×body2560valid
1.5s2762×body1280valid
439.0ms1826×body640valid
143.0ms912×body320valid
54.0ms483×body160valid
25.0ms374×body80valid