Details

Time bar (total: 9.4s)

sample398.0ms

Algorithm
intervals
Results
69.0ms47×body1280valid
35.0ms41×body640valid
20.0ms131×body80valid
14.0ms25×body320valid
5.0ms12×body160valid

simplify24.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0139
1219
2269
3349
4379
5379

prune5.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.3b

localize12.0ms

Local error

Found 4 expressions with local error:

0.1b
(- 1.0 (* (tan x) (tan x)))
0.2b
(/ (- 1.0 (* (tan x) (tan x))) (+ 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
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:
5.0ms
(- 1.0 (* (tan x) (tan x)))
25.0ms
(/ (- 1.0 (* (tan x) (tan x))) (+ 1.0 (* (tan x) (tan x))))
16.0ms
(* (tan x) (tan x))
18.0ms
(* (tan x) (tan x))

series198.0ms

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

simplify43.0ms

Algorithm
egg-herbie
Counts
117 → 117
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0314909
11157838
25001824

prune523.0ms

Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 0.0b

localize13.0ms

Local error

Found 4 expressions with local error:

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

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt add-cube-cbrt unpow-prod-down pow-unpow *-un-lft-identity
pow1 add-exp-log
pow-to-exp pow-pow pow-exp add-cbrt-cube unpow2 add-log-exp sqr-pow
Counts
4 → 72
Calls
4 calls:
3.0ms
(pow (cos x) 2)
3.0ms
(pow (cos x) 2)
6.0ms
(pow (sin x) 2)
4.0ms
(pow (sin x) 2)

series66.0ms

Counts
4 → 12
Calls
4 calls:
16.0ms
(pow (cos x) 2)
15.0ms
(pow (cos x) 2)
17.0ms
(pow (sin x) 2)
18.0ms
(pow (sin x) 2)

simplify62.0ms

Algorithm
egg-herbie
Counts
84 → 84
Iterations

Useful iterations: 3 (57.0ms)

IterNodesCost
0141284
1469240
21590240
35001236

prune376.0ms

Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 0.0b

localize17.0ms

Local error

Found 4 expressions with local error:

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

rewrite83.0ms

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

series239.0ms

Counts
4 → 12
Calls
4 calls:
43.0ms
(* (tan x) (sin x))
105.0ms
(/ (- 1.0 (/ (* (tan x) (sin x)) (cos x))) (+ 1.0 (* (tan x) (tan x))))
60.0ms
(/ (* (tan x) (sin x)) (cos x))
31.0ms
(* (tan x) (tan x))

simplify57.0ms

Algorithm
egg-herbie
Counts
121 → 121
Iterations

Useful iterations: 2 (47.0ms)

IterNodesCost
04411158
118491060
250011054

prune633.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 0.0b

localize11.0ms

Local error

Found 4 expressions with local error:

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

rewrite130.0ms

Algorithm
rewrite-expression-head
Rules
204×times-frac
184×*-un-lft-identity
176×add-sqr-sqrt
94×add-cube-cbrt
40×difference-of-squares
30×associate-/r*
25×distribute-lft-out
20×sqrt-prod distribute-lft-out--
13×add-exp-log associate-/r/ add-cbrt-cube
11×pow1
flip3-- flip-- div-inv associate-/l*
add-log-exp
tan-quot cbrt-undiv div-exp associate-/l/
swap-sqr associate-*r* associate-*l*
frac-2neg flip3-+ clear-num flip-+
pow2 frac-times sub-neg pow-plus diff-log associate-*r/ pow-prod-down associate-*l/ prod-exp pow-sqr *-commutative pow-prod-up cbrt-unprod unswap-sqr
Counts
4 → 227
Calls
4 calls:
10.0ms
(- (sqrt 1.0) (tan x))
52.0ms
(/ (+ (sqrt 1.0) (tan x)) (/ (+ 1.0 (* (tan x) (tan x))) (- (sqrt 1.0) (tan x))))
40.0ms
(/ (+ 1.0 (* (tan x) (tan x))) (- (sqrt 1.0) (tan x)))
16.0ms
(* (tan x) (tan x))

series361.0ms

Counts
4 → 12
Calls
4 calls:
39.0ms
(- (sqrt 1.0) (tan x))
185.0ms
(/ (+ (sqrt 1.0) (tan x)) (/ (+ 1.0 (* (tan x) (tan x))) (- (sqrt 1.0) (tan x))))
106.0ms
(/ (+ 1.0 (* (tan x) (tan x))) (- (sqrt 1.0) (tan x)))
30.0ms
(* (tan x) (tan x))

simplify118.0ms

Algorithm
egg-herbie
Counts
239 → 239
Iterations

Useful iterations: 2 (87.0ms)

IterNodesCost
07334179
137383943
250013925

prune1.1s

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 0b

regimes231.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
01212
11212

end0.0ms

sample4.6s

Algorithm
intervals
Results
2.2s1553×body1280valid
1.1s1241×body640valid
681.0ms4271×body80valid
353.0ms609×body320valid
127.0ms326×body160valid