Details

Time bar (total: 7.4s)

sample356.0ms

Algorithm
intervals
Results
21.0ms48×body1280valid
13.0ms45×body640valid
8.0ms135×body80valid
3.0ms17×body320valid
3.0ms11×body160valid

simplify40.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (25.0ms)

IterNodesCost
0139
1229
2299
3379
4439
5459
6459

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.4b

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

rewrite69.0ms

Algorithm
rewrite-expression-head
Rules
32×add-sqr-sqrt
23×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
expm1-log1p-u log1p-expm1-u associate-/l*
fma-neg prod-diff 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 → 119
Calls
4 calls:
24.0ms
(/ (- 1.0 (* (tan x) (tan x))) (+ 1.0 (* (tan x) (tan x))))
6.0ms
(- 1.0 (* (tan x) (tan x)))
15.0ms
(* (tan x) (tan x))
18.0ms
(* (tan x) (tan x))

series191.0ms

Counts
4 → 12
Calls
4 calls:
86.0ms
(/ (- 1.0 (* (tan x) (tan x))) (+ 1.0 (* (tan x) (tan x))))
34.0ms
(- 1.0 (* (tan x) (tan x)))
30.0ms
(* (tan x) (tan x))
41.0ms
(* (tan x) (tan x))

simplify45.0ms

Algorithm
egg-herbie
Counts
131 → 131
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
03381007
11243918
25001882

prune281.0ms

Pruning

12 alts after pruning (12 fresh and 0 done)

Merged error: 0.1b

localize11.0ms

Local error

Found 4 expressions with local error:

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

rewrite65.0ms

Algorithm
rewrite-expression-head
Rules
31×add-sqr-sqrt
23×add-cube-cbrt *-un-lft-identity
19×pow1 log-pow
18×exp-prod
12×times-frac
tan-quot add-exp-log add-cbrt-cube
swap-sqr associate-*r* associate-*l* add-log-exp
expm1-log1p-u log1p-expm1-u difference-of-squares
log-prod fma-neg prod-diff
pow2 frac-times pow-plus associate-*r/ pow-prod-down associate-*l/ prod-exp associate-/r/ pow-sqr *-commutative pow-prod-up cbrt-unprod unswap-sqr
sub-neg log-div flip3-- flip3-+ exp-diff diff-log div-sub rem-log-exp flip-- flip-+ div-inv
Counts
4 → 114
Calls
4 calls:
5.0ms
(- 1.0 (* (tan x) (tan x)))
14.0ms
(* (tan x) (tan x))
14.0ms
(* (tan x) (tan x))
27.0ms
(log (exp (/ (- 1.0 (* (tan x) (tan x))) (+ 1.0 (* (tan x) (tan x))))))

series175.0ms

Counts
4 → 12
Calls
4 calls:
29.0ms
(- 1.0 (* (tan x) (tan x)))
29.0ms
(* (tan x) (tan x))
31.0ms
(* (tan x) (tan x))
86.0ms
(log (exp (/ (- 1.0 (* (tan x) (tan x))) (+ 1.0 (* (tan x) (tan x))))))

simplify158.0ms

Algorithm
egg-herbie
Counts
126 → 126
Iterations

Useful iterations: 3 (149.0ms)

IterNodesCost
0313858
1968771
24587748
35001743

prune302.0ms

Pruning

12 alts after pruning (12 fresh and 0 done)

Merged error: 0.1b

localize14.0ms

Local error

Found 4 expressions with local error:

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

rewrite107.0ms

Algorithm
rewrite-expression-head
Rules
47×add-sqr-sqrt
45×*-un-lft-identity
39×add-cube-cbrt
36×prod-diff
22×sqrt-prod
20×distribute-rgt-in distribute-lft-in
14×pow1
10×log-pow
exp-prod associate-*r*
add-exp-log add-cbrt-cube
associate-*l*
fma-def add-log-exp
frac-times flip3-+ flip-+
tan-quot expm1-log1p-u log1p-expm1-u
log-prod flip3-- times-frac associate-*r/ swap-sqr associate-*l/ flip--
sub-neg pow-prod-down prod-exp associate-/r/ *-commutative cbrt-unprod distribute-lft-out difference-of-squares unswap-sqr
+-commutative pow2 pow-plus rem-log-exp sum-log pow-sqr pow-prod-up div-inv distribute-lft-out--
Counts
4 → 145
Calls
4 calls:
9.0ms
(+ (sqrt 1.0) (tan x))
57.0ms
(* (+ (sqrt 1.0) (tan x)) (- (sqrt 1.0) (tan x)))
17.0ms
(* (tan x) (tan x))
19.0ms
(log (exp (/ (* (+ (sqrt 1.0) (tan x)) (- (sqrt 1.0) (tan x))) (+ 1.0 (* (tan x) (tan x))))))

series324.0ms

Counts
4 → 12
Calls
4 calls:
32.0ms
(+ (sqrt 1.0) (tan x))
91.0ms
(* (+ (sqrt 1.0) (tan x)) (- (sqrt 1.0) (tan x)))
29.0ms
(* (tan x) (tan x))
173.0ms
(log (exp (/ (* (+ (sqrt 1.0) (tan x)) (- (sqrt 1.0) (tan x))) (+ 1.0 (* (tan x) (tan x))))))

simplify77.0ms

Algorithm
egg-herbie
Counts
157 → 157
Iterations

Useful iterations: 2 (62.0ms)

IterNodesCost
06602001
129221442
250011415

prune351.0ms

Pruning

12 alts after pruning (11 fresh and 1 done)

Merged error: 0.1b

localize9.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ 1.0 (fma (tan x) (tan x) 1.0))
0.2b
(/ (fma (tan x) (tan x) 1.0) (tan x))
0.3b
(/ (tan x) (/ (fma (tan x) (tan x) 1.0) (tan x)))
0.4b
(- (/ 1.0 (fma (tan x) (tan x) 1.0)) (/ (tan x) (/ (fma (tan x) (tan x) 1.0) (tan x))))

rewrite176.0ms

Algorithm
rewrite-expression-head
Rules
1436×times-frac
888×add-sqr-sqrt
873×*-un-lft-identity
867×add-cube-cbrt
611×prod-diff
107×div-inv
58×associate-/r/
45×tan-quot
20×associate-/r*
13×add-exp-log fma-neg add-cbrt-cube
associate-/l*
add-log-exp difference-of-squares
cbrt-undiv div-exp
pow1 expm1-log1p-u log1p-expm1-u
frac-2neg clear-num
distribute-lft-out--
sub-neg flip3-- diff-log frac-sub flip-- associate-/l/
Counts
4 → 783
Calls
4 calls:
5.0ms
(/ 1.0 (fma (tan x) (tan x) 1.0))
6.0ms
(/ (fma (tan x) (tan x) 1.0) (tan x))
13.0ms
(/ (tan x) (/ (fma (tan x) (tan x) 1.0) (tan x)))
74.0ms
(- (/ 1.0 (fma (tan x) (tan x) 1.0)) (/ (tan x) (/ (fma (tan x) (tan x) 1.0) (tan x))))

series402.0ms

Counts
4 → 12
Calls
4 calls:
63.0ms
(/ 1.0 (fma (tan x) (tan x) 1.0))
74.0ms
(/ (fma (tan x) (tan x) 1.0) (tan x))
95.0ms
(/ (tan x) (/ (fma (tan x) (tan x) 1.0) (tan x)))
169.0ms
(- (/ 1.0 (fma (tan x) (tan x) 1.0)) (/ (tan x) (/ (fma (tan x) (tan x) 1.0) (tan x))))

simplify306.0ms

Algorithm
egg-herbie
Counts
795 → 795
Iterations

Useful iterations: 1 (41.0ms)

IterNodesCost
0245744315
1500135123

prune2.1s

Pruning

12 alts after pruning (11 fresh and 1 done)

Merged error: 0.0b

regimes138.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
01313
11313

end0.0ms

sample1.6s

Algorithm
intervals
Results
725.0ms1596×body1280valid
354.0ms1259×body640valid
241.0ms4230×body80valid
117.0ms615×body320valid
45.0ms300×body160valid