Details

Time bar (total: 6.4s)

analyze768.0ms

Algorithm
search

sample92.0ms

Algorithm
intervals
Results
44.0ms101×body1280valid
20.0ms21×body2560valid
14.0ms66×body640valid
3.0ms19×body320valid
2.0ms38×body80valid
1.0ms11×body160valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
094
1104
2104

prune3.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 38.1b

Counts
2 → 1

localize9.0ms

Local error

Found 2 expressions with local error:

1.1b
(- (tan (+ x eps)) (tan x))
4.3b
(tan (+ x eps))

rewrite15.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:
10.0ms
(- (tan (+ x eps)) (tan x))
5.0ms
(tan (+ x eps))

series39.0ms

Counts
2 → 6
Calls
2 calls:
23.0ms
(- (tan (+ x eps)) (tan x))
16.0ms
(tan (+ x eps))

simplify78.0ms

Algorithm
egg-herbie
Counts
31 → 31
Iterations

Useful iterations: 3 (23.0ms)

IterNodesCost
0134211
1295202
2757200
32482199
45001199

prune62.0ms

Filtered
25 candidates to 31 candidates (-24.0%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New23831
Fresh000
Picked101
Done000
Total24832

Merged error: 15.9b

Counts
32 → 8

localize11.0ms

Local error

Found 4 expressions with local error:

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

rewrite31.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:
6.0ms
(+ (tan x) (tan eps))
7.0ms
(/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps))))
5.0ms
(* (tan x) (tan eps))
11.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

series188.0ms

Counts
4 → 12
Calls
4 calls:
19.0ms
(+ (tan x) (tan eps))
54.0ms
(/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps))))
20.0ms
(* (tan x) (tan eps))
95.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
03971050
114321005
25001994

prune170.0ms

Filtered
74 candidates to 98 candidates (-32.4%)
Pruning

18 alts after pruning (18 fresh and 0 done)

PrunedKeptTotal
New831598
Fresh437
Picked101
Done000
Total8818106

Merged error: 15.7b

Counts
106 → 18

localize16.0ms

Local error

Found 4 expressions with local error:

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

rewrite41.0ms

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

series192.0ms

Counts
4 → 12
Calls
4 calls:
55.0ms
(/ (+ (tan x) (tan eps)) (- 1 (/ (* (sin x) (tan eps)) (cos x))))
24.0ms
(/ (* (sin x) (tan eps)) (cos x))
16.0ms
(* (sin x) (tan eps))
97.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (/ (* (sin x) (tan eps)) (cos x)))) (tan x))

simplify57.0ms

Algorithm
egg-herbie
Counts
120 → 120
Iterations

Useful iterations: 2 (43.0ms)

IterNodesCost
05001555
119451463
250011462

prune169.0ms

Filtered
82 candidates to 120 candidates (-46.3%)
Pruning

18 alts after pruning (18 fresh and 0 done)

PrunedKeptTotal
New1173120
Fresh21517
Picked101
Done000
Total12018138

Merged error: 15.7b

Counts
138 → 18

localize24.0ms

Local error

Found 4 expressions with local error:

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

rewrite37.0ms

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

series135.0ms

Counts
4 → 12
Calls
4 calls:
5.0ms
(/ (sin eps) (cos eps))
5.0ms
(/ (sin x) (cos x))
22.0ms
(* (tan x) (tan eps))
102.0ms
(- (/ (+ (/ (sin eps) (cos eps)) (/ (sin x) (cos x))) (- 1 (* (tan x) (tan eps)))) (tan x))

simplify39.0ms

Algorithm
egg-herbie
Counts
105 → 105
Iterations

Useful iterations: 2 (30.0ms)

IterNodesCost
0410931
11306863
25001850

prune107.0ms

Filtered
80 candidates to 105 candidates (-31.3%)
Pruning

17 alts after pruning (17 fresh and 0 done)

PrunedKeptTotal
New987105
Fresh71017
Picked101
Done000
Total10617123

Merged error: 14.0b

Counts
123 → 17

regimes250.0ms

Accuracy

94.1% (0.5b remaining)

Error of 13.7b against oracle of 13.1b and baseline of 22.0b

bsearch248.0ms

Steps
ItersRangePoint
6
9.96540630748219e-45
1.269177370794961e-43
1.1417540727375646e-43
7
-1.1015942559314249e-20
-6.625125053261104e-22
-8.439240075791184e-22

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04224
14224

end0.0ms

analyze938.0ms

Algorithm
search

sample2.6s

Algorithm
intervals
Results
1.3s3263×body1280valid
546.0ms632×body2560valid
404.0ms1883×body640valid
107.0ms783×body320valid
50.0ms1113×body80valid
31.0ms326×body160valid

Profiling

Loading profile data...