Details

Time bar (total: 7.2s)

sample316.0ms

Algorithm
intervals
Results
61.0ms131×body1280valid
18.0ms256×pre80true
14.0ms59×body640valid
4.0ms24×body320valid
2.0ms33×body80valid
1.0msbody160valid

simplify389.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0155
1225
2335
3395
4505
5705
6995
71245
81665
92595
102605
112605

prune6.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 14.3b

Counts
2 → 1

localize13.0ms

Local error

Found 3 expressions with local error:

0.1b
(+ x (- (tan (+ y z)) (tan a)))
0.1b
(- (tan (+ y z)) (tan a))
4.1b
(tan (+ y z))

rewrite20.0ms

Algorithm
rewrite-expression-head
Rules
10×*-un-lft-identity add-log-exp
add-sqr-sqrt
tan-quot
pow1 add-exp-log add-cube-cbrt add-cbrt-cube
sub-neg tan-sum associate-+r+ diff-log sum-log frac-sub distribute-lft-out distribute-lft-out--
+-commutative associate-+r- flip3-- flip3-+ flip-- flip-+ difference-of-squares
Counts
3 → 42
Calls
3 calls:
5.0ms
(+ x (- (tan (+ y z)) (tan a)))
6.0ms
(- (tan (+ y z)) (tan a))
6.0ms
(tan (+ y z))

series115.0ms

Counts
3 → 9
Calls
3 calls:
39.0ms
(+ x (- (tan (+ y z)) (tan a)))
33.0ms
(- (tan (+ y z)) (tan a))
42.0ms
(tan (+ y z))

simplify37.0ms

Algorithm
egg-herbie
Counts
51 → 51
Iterations

Useful iterations: 2 (11.0ms)

IterNodesCost
0196346
1467335
21316334
35002334

prune101.0ms

Filtered
39 candidates to 51 candidates (-30.8%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New43851
Fresh000
Picked101
Done000
Total44852

Merged error: 0.1b

Counts
52 → 8

localize16.0ms

Local error

Found 4 expressions with local error:

0.1b
(+ x (- (/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z)))) (tan a)))
0.1b
(/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z))))
0.2b
(- (/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z)))) (tan a))
0.2b
(* (tan y) (tan z))

rewrite41.0ms

Algorithm
rewrite-expression-head
Rules
30×*-un-lft-identity
22×add-sqr-sqrt
15×add-cube-cbrt
13×times-frac
11×add-log-exp
add-exp-log add-cbrt-cube
tan-quot
pow1 distribute-lft-out
associate-/l*
associate-*r* associate-*l* associate-/r* associate-/l/
sub-neg associate-+r+ flip3-- flip3-+ diff-log sum-log associate-/r/ flip-- flip-+ distribute-lft-out-- difference-of-squares
cbrt-undiv +-commutative frac-times associate-+r- frac-2neg associate-*r/ div-exp pow-prod-down associate-*l/ frac-add prod-exp clear-num *-commutative frac-sub cbrt-unprod div-inv unswap-sqr
Counts
4 → 90
Calls
4 calls:
12.0ms
(+ x (- (/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z)))) (tan a)))
8.0ms
(/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z))))
11.0ms
(- (/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z)))) (tan a))
7.0ms
(* (tan y) (tan z))

series321.0ms

Counts
4 → 12
Calls
4 calls:
124.0ms
(+ x (- (/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z)))) (tan a)))
57.0ms
(/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z))))
118.0ms
(- (/ (+ (tan y) (tan z)) (- 1 (* (tan y) (tan z)))) (tan a))
22.0ms
(* (tan y) (tan z))

simplify119.0ms

Algorithm
egg-herbie
Counts
102 → 102
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
04491259
115031211
249921203
350011203

prune174.0ms

Filtered
75 candidates to 102 candidates (-36.0%)
Pruning

12 alts after pruning (12 fresh and 0 done)

PrunedKeptTotal
New948102
Fresh347
Picked101
Done000
Total9812110

Merged error: 0.0b

Counts
110 → 12

localize29.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (sin y) (cos z))
0.2b
(- (/ (+ (* (sin y) (cos z)) (* (cos y) (sin z))) (* (- 1 (* (tan y) (tan z))) (* (cos y) (cos z)))) (tan a))
0.2b
(* (tan y) (tan z))
0.3b
(/ (+ (* (sin y) (cos z)) (* (cos y) (sin z))) (* (- 1 (* (tan y) (tan z))) (* (cos y) (cos z))))

rewrite41.0ms

Algorithm
rewrite-expression-head
Rules
17×add-exp-log add-cbrt-cube
16×add-sqr-sqrt
12×*-un-lft-identity
10×add-cube-cbrt
pow1
associate-*r* associate-*l* add-log-exp
tan-quot prod-exp associate-/r/ cbrt-unprod
cbrt-undiv frac-times flip3-- times-frac div-exp associate-*l/ cos-mult flip-- associate-/l*
associate-*r/ pow-prod-down *-commutative associate-/l/ unswap-sqr
sub-neg frac-2neg flip3-+ diff-log clear-num associate-/r* frac-sub sin-cos-mult flip-+ div-inv distribute-lft-out-- difference-of-squares
Counts
4 → 85
Calls
4 calls:
4.0ms
(* (sin y) (cos z))
16.0ms
(- (/ (+ (* (sin y) (cos z)) (* (cos y) (sin z))) (* (- 1 (* (tan y) (tan z))) (* (cos y) (cos z)))) (tan a))
5.0ms
(* (tan y) (tan z))
13.0ms
(/ (+ (* (sin y) (cos z)) (* (cos y) (sin z))) (* (- 1 (* (tan y) (tan z))) (* (cos y) (cos z))))

series217.0ms

Counts
4 → 12
Calls
4 calls:
9.0ms
(* (sin y) (cos z))
117.0ms
(- (/ (+ (* (sin y) (cos z)) (* (cos y) (sin z))) (* (- 1 (* (tan y) (tan z))) (* (cos y) (cos z)))) (tan a))
21.0ms
(* (tan y) (tan z))
70.0ms
(/ (+ (* (sin y) (cos z)) (* (cos y) (sin z))) (* (- 1 (* (tan y) (tan z))) (* (cos y) (cos z))))

simplify63.0ms

Algorithm
egg-herbie
Counts
97 → 97
Iterations

Useful iterations: 1 (13.0ms)

IterNodesCost
05821423
123921265
250011265

prune143.0ms

Filtered
72 candidates to 97 candidates (-34.7%)
Pruning

12 alts after pruning (11 fresh and 1 done)

PrunedKeptTotal
New97097
Fresh01111
Picked011
Done000
Total9712109

Merged error: 0.0b

Counts
109 → 12

localize27.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (+ (tan y) (tan z)) (- 1 (/ (* (sin y) (sin z)) (* (cos y) (cos z)))))
0.2b
(- (/ (+ (tan y) (tan z)) (- 1 (/ (* (sin y) (sin z)) (* (cos y) (cos z))))) (tan a))
0.2b
(/ (* (sin y) (sin z)) (* (cos y) (cos z)))
0.2b
(* (sin y) (sin z))

rewrite46.0ms

Algorithm
rewrite-expression-head
Rules
49×*-un-lft-identity
40×add-sqr-sqrt
26×times-frac
20×add-exp-log add-cbrt-cube
18×add-cube-cbrt
12×difference-of-squares
associate-/r* distribute-lft-out
pow1 distribute-lft-out-- add-log-exp
cbrt-undiv div-exp prod-exp cbrt-unprod associate-/l*
associate-/l/
tan-quot associate-*r* associate-*l* associate-/r/
flip3-- frac-2neg clear-num flip-- div-inv sin-mult
sub-neg flip3-+ diff-log pow-prod-down frac-add cos-mult *-commutative frac-sub flip-+ unswap-sqr
Counts
4 → 109
Calls
4 calls:
11.0ms
(/ (+ (tan y) (tan z)) (- 1 (/ (* (sin y) (sin z)) (* (cos y) (cos z)))))
19.0ms
(- (/ (+ (tan y) (tan z)) (- 1 (/ (* (sin y) (sin z)) (* (cos y) (cos z))))) (tan a))
7.0ms
(/ (* (sin y) (sin z)) (* (cos y) (cos z)))
5.0ms
(* (sin y) (sin z))

series205.0ms

Counts
4 → 12
Calls
4 calls:
56.0ms
(/ (+ (tan y) (tan z)) (- 1 (/ (* (sin y) (sin z)) (* (cos y) (cos z)))))
117.0ms
(- (/ (+ (tan y) (tan z)) (- 1 (/ (* (sin y) (sin z)) (* (cos y) (cos z))))) (tan a))
22.0ms
(/ (* (sin y) (sin z)) (* (cos y) (cos z)))
9.0ms
(* (sin y) (sin z))

simplify63.0ms

Algorithm
egg-herbie
Counts
121 → 121
Iterations

Useful iterations: 1 (12.0ms)

IterNodesCost
05371821
123501683
250011683

prune109.0ms

Filtered
81 candidates to 121 candidates (-49.4%)
Pruning

11 alts after pruning (10 fresh and 1 done)

PrunedKeptTotal
New1201121
Fresh1910
Picked101
Done011
Total12211133

Merged error: 0.0b

Counts
133 → 11

regimes1.1s

Accuracy

0% (0.1b remaining)

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

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03119
13119

end0.0ms

sample3.5s

Algorithm
intervals
Results
1.7s3940×body1280valid
527.0ms8000×pre80true
485.0ms1989×body640valid
110.0ms657×body320valid
57.0ms1120×body80valid
38.0ms294×body160valid

Profiling

Loading profile data...