Details

Time bar (total: 3.6s)

sample44.0ms

Algorithm
intervals
Results
15.0ms48×body1280valid
8.0ms47×body640valid
6.0ms136×body80valid
2.0ms15×body320valid
1.0ms10×body160valid

simplify570.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0139
1219
2269
3349
4379
5379

prune4.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 0.3b

Counts
2 → 1

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

rewrite34.0ms

Algorithm
rewrite-expression-head
Rules
30×add-sqr-sqrt
21×add-cube-cbrt *-un-lft-identity
18×pow1
12×times-frac
10×add-exp-log add-cbrt-cube
tan-quot
swap-sqr associate-*r* associate-*l* add-log-exp
difference-of-squares
associate-/l*
associate-/r*
pow2 frac-times flip3-- pow-plus associate-*r/ pow-prod-down associate-*l/ prod-exp associate-/r/ pow-sqr *-commutative pow-prod-up flip-- cbrt-unprod associate-/l/ unswap-sqr
cbrt-undiv sub-neg frac-2neg flip3-+ diff-log div-sub div-exp clear-num flip-+ div-inv
Counts
4 → 105
Calls
4 calls:
6.0ms
(/ (- 1.0 (* (tan x) (tan x))) (+ 1.0 (* (tan x) (tan x))))
3.0ms
(- 1.0 (* (tan x) (tan x)))
5.0ms
(* (tan x) (tan x))
7.0ms
(* (tan x) (tan x))

series71.0ms

Counts
4 → 12
Calls
4 calls:
33.0ms
(/ (- 1.0 (* (tan x) (tan x))) (+ 1.0 (* (tan x) (tan x))))
10.0ms
(- 1.0 (* (tan x) (tan x)))
9.0ms
(* (tan x) (tan x))
20.0ms
(* (tan x) (tan x))

simplify41.0ms

Algorithm
egg-herbie
Counts
117 → 117
Iterations

Useful iterations: 2 (32.0ms)

IterNodesCost
0314909
11157838
25001824

prune197.0ms

Filtered
77 candidates to 117 candidates (-51.9%)
Pruning

12 alts after pruning (12 fresh and 0 done)

PrunedKeptTotal
New10512117
Fresh000
Picked101
Done000
Total10612118

Merged error: 0.0b

Counts
118 → 12

localize14.0ms

Local error

Found 4 expressions with local error:

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

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
18×add-sqr-sqrt
14×*-un-lft-identity
13×pow1 add-exp-log add-cbrt-cube
12×add-cube-cbrt
tan-quot associate-*r* associate-*l* add-log-exp
times-frac swap-sqr associate-*l/ prod-exp associate-/r* cbrt-unprod
cbrt-undiv div-exp pow-prod-down *-commutative unswap-sqr
pow2 frac-times sub-neg flip3-- frac-2neg pow-plus diff-log associate-*r/ clear-num pow-sqr pow-prod-up flip-- div-inv associate-/l/ associate-/l* distribute-lft-out-- difference-of-squares
Counts
4 → 83
Calls
4 calls:
5.0ms
(- 1.0 (/ (* (tan x) (sin x)) (cos x)))
4.0ms
(* (tan x) (sin x))
5.0ms
(/ (* (tan x) (sin x)) (cos x))
5.0ms
(* (tan x) (tan x))

series51.0ms

Counts
4 → 12
Calls
4 calls:
14.0ms
(- 1.0 (/ (* (tan x) (sin x)) (cos x)))
10.0ms
(* (tan x) (sin x))
18.0ms
(/ (* (tan x) (sin x)) (cos x))
9.0ms
(* (tan x) (tan x))

simplify43.0ms

Algorithm
egg-herbie
Counts
95 → 95
Iterations

Useful iterations: 2 (37.0ms)

IterNodesCost
0291567
11265503
25001495

prune117.0ms

Filtered
62 candidates to 95 candidates (-53.2%)
Pruning

12 alts after pruning (11 fresh and 1 done)

PrunedKeptTotal
New95095
Fresh01111
Picked011
Done000
Total9512107

Merged error: 0.0b

Counts
107 → 12

localize11.0ms

Local error

Found 4 expressions with local error:

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

rewrite45.0ms

Algorithm
rewrite-expression-head
Rules
204×times-frac
184×*-un-lft-identity
172×add-sqr-sqrt
94×add-cube-cbrt
38×difference-of-squares
30×associate-/r*
26×distribute-lft-out
19×sqrt-prod distribute-lft-out--
13×add-exp-log associate-/r/ add-cbrt-cube
11×pow1
div-inv associate-/l*
flip3-- flip-- add-log-exp
tan-quot cbrt-undiv div-exp associate-/l/
flip3-+ swap-sqr associate-*r* associate-*l* flip-+
frac-2neg clear-num
+-commutative pow2 frac-times pow-plus associate-*r/ pow-prod-down associate-*l/ prod-exp sum-log pow-sqr *-commutative pow-prod-up cbrt-unprod unswap-sqr
Counts
4 → 224
Calls
4 calls:
15.0ms
(/ (+ (sqrt 1.0) (tan x)) (/ (+ 1.0 (* (tan x) (tan x))) (- (sqrt 1.0) (tan x))))
4.0ms
(+ (sqrt 1.0) (tan x))
8.0ms
(/ (+ 1.0 (* (tan x) (tan x))) (- (sqrt 1.0) (tan x)))
5.0ms
(* (tan x) (tan x))

series84.0ms

Counts
4 → 12
Calls
4 calls:
43.0ms
(/ (+ (sqrt 1.0) (tan x)) (/ (+ 1.0 (* (tan x) (tan x))) (- (sqrt 1.0) (tan x))))
7.0ms
(+ (sqrt 1.0) (tan x))
25.0ms
(/ (+ 1.0 (* (tan x) (tan x))) (- (sqrt 1.0) (tan x)))
9.0ms
(* (tan x) (tan x))

simplify115.0ms

Algorithm
egg-herbie
Counts
236 → 236
Iterations

Useful iterations: 2 (85.0ms)

IterNodesCost
07354155
137403919
250013901

prune426.0ms

Filtered
144 candidates to 236 candidates (-63.9%)
Pruning

13 alts after pruning (12 fresh and 1 done)

PrunedKeptTotal
New2333236
Fresh1910
Picked101
Done011
Total23513248

Merged error: 0.0b

Counts
248 → 13

localize9.0ms

Local error

Found 4 expressions with local error:

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

rewrite32.0ms

Algorithm
rewrite-expression-head
Rules
32×add-sqr-sqrt
25×pow1
18×*-un-lft-identity
16×add-cube-cbrt
12×tan-quot
10×add-exp-log add-cbrt-cube
swap-sqr associate-*r* associate-*l*
add-log-exp
times-frac associate-/r/ difference-of-squares
pow2 frac-times distribute-rgt-out-- pow-plus associate-*r/ pow-prod-down associate-*l/ prod-exp pow-sqr *-commutative pow-prod-up cbrt-unprod unswap-sqr
flip3-+ flip-+ div-inv
sub-neg flip3-- diff-log frac-sub flip-- distribute-lft-out-- sub-div
Counts
4 → 106
Calls
4 calls:
5.0ms
(* (tan x) (tan x))
7.0ms
(* (tan x) (tan x))
5.0ms
(* (tan x) (tan x))
13.0ms
(- (/ 1.0 (+ 1.0 (* (tan x) (tan x)))) (/ (* (tan x) (tan x)) (+ 1.0 (* (tan x) (tan x)))))

series79.0ms

Counts
4 → 12
Calls
4 calls:
9.0ms
(* (tan x) (tan x))
9.0ms
(* (tan x) (tan x))
9.0ms
(* (tan x) (tan x))
52.0ms
(- (/ 1.0 (+ 1.0 (* (tan x) (tan x)))) (/ (* (tan x) (tan x)) (+ 1.0 (* (tan x) (tan x)))))

simplify37.0ms

Algorithm
egg-herbie
Counts
118 → 118
Iterations

Useful iterations: 2 (26.0ms)

IterNodesCost
0266869
1914800
25002794

prune99.0ms

Filtered
69 candidates to 118 candidates (-71.0%)
Pruning

14 alts after pruning (12 fresh and 2 done)

PrunedKeptTotal
New1171118
Fresh01111
Picked011
Done011
Total11714131

Merged error: 0.0b

Counts
131 → 14

regimes388.0ms

Accuracy

0% (0.3b remaining)

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

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01311
11311

end0.0ms

sample1.0s

Algorithm
intervals
Results
396.0ms1517×body1280valid
210.0ms1194×body640valid
171.0ms4366×body80valid
73.0ms592×body320valid
29.0ms331×body160valid

Profiling

Loading profile data...