Details

Time bar (total: 2.8s)

sample288.0ms

Algorithm
intervals
Results
12.0ms42×body1280valid
7.0ms44×body640valid
5.0ms142×body80valid
2.0ms17×body320valid
1.0ms11×body160valid

simplify12.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0139
1219
2269
3349
4379
5379

prune3.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: 0.4b

Counts
2 → 1

localize9.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (- 1.0 (* (tan x) (tan x))) (+ 1.0 (* (tan x) (tan x))))
0.2b
(- 1.0 (* (tan x) (tan x)))
0.3b
(* (tan x) (tan x))
0.3b
(* (tan x) (tan x))

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
tan-quot
pow2 frac-times flip3-- associate-*r/ associate-*l/ associate-/r/ *-commutative flip-- associate-/l/
sub-neg frac-2neg flip3-+ div-sub clear-num flip-+ div-inv
Counts
4 → 22
Calls
4 calls:
4.0ms
(/ (- 1.0 (* (tan x) (tan x))) (+ 1.0 (* (tan x) (tan x))))
2.0ms
(- 1.0 (* (tan x) (tan x)))
3.0ms
(* (tan x) (tan x))
6.0ms
(* (tan x) (tan x))

series219.0ms

Counts
4 → 12
Calls
4 calls:
94.0ms
(/ (- 1.0 (* (tan x) (tan x))) (+ 1.0 (* (tan x) (tan x))))
34.0ms
(- 1.0 (* (tan x) (tan x)))
48.0ms
(* (tan x) (tan x))
43.0ms
(* (tan x) (tan x))

simplify138.0ms

Algorithm
egg-herbie
Counts
34 → 34
Iterations

Useful iterations: 4 (134.0ms)

IterNodesCost
0154226
1411224
21148224
34447214
45001213

prune89.0ms

Filtered
34 candidates to 22 candidates (64.7%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New25934
Fresh000
Picked101
Done000
Total26935

Merged error: 0.1b

Counts
35 → 9

localize13.0ms

Local error

Found 4 expressions with local error:

0.2b
(pow (cos x) 2)
0.2b
(pow (cos x) 2)
0.2b
(pow (sin x) 2)
0.2b
(pow (sin x) 2)

rewrite7.0ms

Algorithm
rewrite-expression-head
Rules
pow-to-exp unpow2 sqr-pow
Counts
4 → 12
Calls
4 calls:
1.0ms
(pow (cos x) 2)
1.0ms
(pow (cos x) 2)
2.0ms
(pow (sin x) 2)
2.0ms
(pow (sin x) 2)

series75.0ms

Counts
4 → 12
Calls
4 calls:
17.0ms
(pow (cos x) 2)
20.0ms
(pow (cos x) 2)
19.0ms
(pow (sin x) 2)
20.0ms
(pow (sin x) 2)

simplify121.0ms

Algorithm
egg-herbie
Counts
24 → 24
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
06160
119760
259060
3283960
4500160

prune67.0ms

Filtered
24 candidates to 12 candidates (50.0%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New24024
Fresh088
Picked011
Done000
Total24933

Merged error: 0.1b

Counts
33 → 9

localize13.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (tan x) (sin x))
0.2b
(/ (* (tan x) (sin x)) (cos x))
0.2b
(- 1.0 (/ (* (tan x) (sin x)) (cos x)))
0.3b
(* (tan x) (tan x))

rewrite14.0ms

Algorithm
rewrite-expression-head
Rules
tan-quot
associate-*l/ *-commutative
associate-/l*
pow2 frac-times sub-neg flip3-- frac-2neg associate-*r/ clear-num flip-- div-inv associate-/l/
Counts
4 → 17
Calls
4 calls:
3.0ms
(* (tan x) (sin x))
5.0ms
(/ (* (tan x) (sin x)) (cos x))
2.0ms
(- 1.0 (/ (* (tan x) (sin x)) (cos x)))
4.0ms
(* (tan x) (tan x))

series190.0ms

Counts
4 → 12
Calls
4 calls:
42.0ms
(* (tan x) (sin x))
62.0ms
(/ (* (tan x) (sin x)) (cos x))
50.0ms
(- 1.0 (/ (* (tan x) (sin x)) (cos x)))
35.0ms
(* (tan x) (tan x))

simplify42.0ms

Algorithm
egg-herbie
Counts
29 → 29
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0122152
1327152
21169152
35001152

prune91.0ms

Filtered
29 candidates to 19 candidates (65.5%)
Pruning

10 alts after pruning (8 fresh and 2 done)

PrunedKeptTotal
New28129
Fresh077
Picked011
Done011
Total281038

Merged error: 0.1b

Counts
38 → 10

localize17.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ (* (tan x) (sin x)) (cos x))
0.2b
(- 1.0 (/ (* (tan x) (sin x)) (cos x)))
0.2b
(pow (cos x) 2)
0.2b
(pow (sin x) 2)

rewrite10.0ms

Algorithm
rewrite-expression-head
Rules
pow-to-exp associate-/l* unpow2 sqr-pow
tan-quot sub-neg flip3-- frac-2neg associate-*l/ clear-num *-commutative flip-- div-inv associate-/l/
Counts
4 → 16
Calls
4 calls:
5.0ms
(/ (* (tan x) (sin x)) (cos x))
2.0ms
(- 1.0 (/ (* (tan x) (sin x)) (cos x)))
1.0ms
(pow (cos x) 2)
2.0ms
(pow (sin x) 2)

series152.0ms

Counts
4 → 12
Calls
4 calls:
62.0ms
(/ (* (tan x) (sin x)) (cos x))
54.0ms
(- 1.0 (/ (* (tan x) (sin x)) (cos x)))
17.0ms
(pow (cos x) 2)
19.0ms
(pow (sin x) 2)

simplify65.0ms

Algorithm
egg-herbie
Counts
28 → 28
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0140138
1472138
21978138
35001138

prune76.0ms

Filtered
28 candidates to 18 candidates (64.3%)
Pruning

10 alts after pruning (7 fresh and 3 done)

PrunedKeptTotal
New28028
Fresh077
Picked011
Done022
Total281038

Merged error: 0.1b

Counts
38 → 10

regimes161.0ms

Accuracy

0% (0.3b remaining)

Error of 0.4b against oracle of 0.1b and baseline of 0.4b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01213
11213

end0.0ms

sample913.0ms

Algorithm
intervals
Results
369.0ms1538×body1280valid
195.0ms1266×body640valid
148.0ms4303×body80valid
64.0ms595×body320valid
23.0ms298×body160valid