Details

Time bar (total: 7.2s)

sample92.0ms

Algorithm
intervals
Results
41.0ms110×body1280valid
18.0ms22×body2560valid
11.0ms52×body640valid
8.0ms28×body320valid
1.0ms32×body80valid
1.0ms12×body160valid

simplify4.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
094
1104
2104

prune4.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: 36.8b

Counts
2 → 1

localize8.0ms

Local error

Found 2 expressions with local error:

2.2b
(- (tan (+ x eps)) (tan x))
3.7b
(tan (+ x eps))

rewrite11.0ms

Algorithm
rewrite-expression-head
Rules
tan-quot add-sqr-sqrt *-un-lft-identity add-log-exp
pow1 add-exp-log add-cube-cbrt tan-sum frac-sub add-cbrt-cube
sub-neg flip3-- diff-log flip-- distribute-lft-out-- difference-of-squares
Counts
2 → 25
Calls
2 calls:
6.0ms
(- (tan (+ x eps)) (tan x))
4.0ms
(tan (+ x eps))

series142.0ms

Counts
2 → 6
Calls
2 calls:
88.0ms
(- (tan (+ x eps)) (tan x))
54.0ms
(tan (+ x eps))

simplify77.0ms

Algorithm
egg-herbie
Counts
31 → 31
Iterations

Useful iterations: 3 (22.0ms)

IterNodesCost
0134211
1295202
2757200
32482199
45001199

prune123.0ms

Filtered
31 candidates to 25 candidates (80.6%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New23831
Fresh000
Picked101
Done000
Total24832

Merged error: 14.3b

Counts
32 → 8

localize11.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps))))
0.1b
(+ (tan x) (tan eps))
0.2b
(* (tan x) (tan eps))
2.7b
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

rewrite34.0ms

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

series751.0ms

Counts
4 → 12
Calls
4 calls:
210.0ms
(/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps))))
92.0ms
(+ (tan x) (tan eps))
95.0ms
(* (tan x) (tan eps))
354.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

simplify44.0ms

Algorithm
egg-herbie
Counts
98 → 98
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
03971052
114321007
25001995

prune412.0ms

Filtered
98 candidates to 74 candidates (75.5%)
Pruning

17 alts after pruning (17 fresh and 0 done)

PrunedKeptTotal
New851398
Fresh347
Picked101
Done000
Total8917106

Merged error: 14.2b

Counts
106 → 17

localize16.0ms

Local error

Found 4 expressions with local error:

0.1b
(+ (tan x) (tan eps))
0.2b
(* (tan x) (sin eps))
0.2b
(/ (* (tan x) (sin eps)) (cos eps))
2.7b
(- (/ (+ (tan x) (tan eps)) (- 1 (/ (* (tan x) (sin eps)) (cos eps)))) (tan x))

rewrite33.0ms

Algorithm
rewrite-expression-head
Rules
15×add-sqr-sqrt
12×*-un-lft-identity
11×add-exp-log add-cbrt-cube
add-cube-cbrt add-log-exp
pow1
tan-quot
times-frac
associate-*r* associate-*l* associate-/r*
cbrt-undiv div-exp associate-*l/ prod-exp cbrt-unprod difference-of-squares
+-commutative sub-neg flip3-- frac-2neg flip3-+ diff-log pow-prod-down frac-add clear-num sum-log *-commutative frac-sub flip-- flip-+ div-inv associate-/l/ distribute-lft-out associate-/l* distribute-lft-out-- unswap-sqr
Counts
4 → 70
Calls
4 calls:
4.0ms
(+ (tan x) (tan eps))
5.0ms
(* (tan x) (sin eps))
5.0ms
(/ (* (tan x) (sin eps)) (cos eps))
17.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (/ (* (tan x) (sin eps)) (cos eps)))) (tan x))

series611.0ms

Counts
4 → 12
Calls
4 calls:
92.0ms
(+ (tan x) (tan eps))
69.0ms
(* (tan x) (sin eps))
95.0ms
(/ (* (tan x) (sin eps)) (cos eps))
355.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (/ (* (tan x) (sin eps)) (cos eps)))) (tan x))

simplify42.0ms

Algorithm
egg-herbie
Counts
82 → 82
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0385785
11424711
25001699

prune352.0ms

Filtered
82 candidates to 59 candidates (72.0%)
Pruning

17 alts after pruning (16 fresh and 1 done)

PrunedKeptTotal
New82082
Fresh01616
Picked011
Done000
Total821799

Merged error: 14.2b

Counts
99 → 17

localize22.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ (sin x) (* (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))) (cos x)))
0.2b
(/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))
0.2b
(/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))
2.7b
(- (+ (/ (sin x) (* (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))) (cos x))) (/ (sin eps) (* (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))) (cos eps)))) (/ (sin x) (cos x)))

rewrite54.0ms

Algorithm
rewrite-expression-head
Rules
33×add-exp-log add-cbrt-cube
11×add-sqr-sqrt *-un-lft-identity
10×cbrt-undiv div-exp
prod-exp cbrt-unprod add-log-exp
add-cube-cbrt times-frac
associate-/l*
pow1 associate-/r/
frac-2neg clear-num associate-/r* frac-sub div-inv
flip3-- diff-log associate-*l/ cos-mult flip-- associate-/l/ sin-mult distribute-lft-out-- difference-of-squares
sub-neg flip3-+ frac-add associate--l+ sum-log flip-+ distribute-lft-out
Counts
4 → 90
Calls
4 calls:
13.0ms
(/ (sin x) (* (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))) (cos x)))
8.0ms
(/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))
8.0ms
(/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))
23.0ms
(- (+ (/ (sin x) (* (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))) (cos x))) (/ (sin eps) (* (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))) (cos eps)))) (/ (sin x) (cos x)))

series867.0ms

Counts
4 → 12
Calls
4 calls:
142.0ms
(/ (sin x) (* (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))) (cos x)))
93.0ms
(/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))
94.0ms
(/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))
538.0ms
(- (+ (/ (sin x) (* (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))) (cos x))) (/ (sin eps) (* (- 1 (/ (* (sin x) (sin eps)) (* (cos x) (cos eps)))) (cos eps)))) (/ (sin x) (cos x)))

simplify63.0ms

Algorithm
egg-herbie
Counts
102 → 102
Iterations

Useful iterations: 1 (12.0ms)

IterNodesCost
05462112
124121871
250011871

prune378.0ms

Filtered
102 candidates to 70 candidates (68.6%)
Pruning

19 alts after pruning (18 fresh and 1 done)

PrunedKeptTotal
New966102
Fresh31215
Picked101
Done011
Total10019119

Merged error: 14.2b

Counts
119 → 19

regimes302.0ms

Accuracy

89.6% (0.8b remaining)

Error of 15.5b against oracle of 14.7b and baseline of 22.0b

bsearch128.0ms

Steps
ItersRangePoint
10
6.435068213659741e-29
1.6162352712440818e-10
3.5816582224323186e-19
10
-3.4634588385797854e-17
-6.27478496522788e-29
-7.770309340641002e-24

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03416
13416

end0.0ms

sample2.6s

Algorithm
intervals
Results
1.3s3272×body1280valid
570.0ms669×body2560valid
368.0ms1788×body640valid
106.0ms787×body320valid
45.0ms1121×body80valid
35.0ms363×body160valid

Profiling

Loading profile data...