Details

Time bar (total: 6.2s)

sample78.0ms

Algorithm
intervals
Results
40.0ms112×body1280valid
13.0ms16×body2560valid
11.0ms58×body640valid
3.0ms27×body320valid
1.0ms35×body80valid
1.0msbody160valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
094
1104
2104

prune2.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.2b

Counts
2 → 1

localize8.0ms

Local error

Found 2 expressions with local error:

0.5b
(- (tan (+ x eps)) (tan x))
4.0b
(tan (+ x eps))

rewrite8.0ms

Algorithm
rewrite-expression-head
Rules
tan-quot
tan-sum
frac-sub
+-commutative
sub-neg flip3-- flip--
Counts
2 → 10
Calls
2 calls:
4.0ms
(- (tan (+ x eps)) (tan x))
3.0ms
(tan (+ x eps))

series137.0ms

Counts
2 → 6
Calls
2 calls:
86.0ms
(- (tan (+ x eps)) (tan x))
50.0ms
(tan (+ x eps))

simplify75.0ms

Algorithm
egg-herbie
Counts
16 → 16
Iterations

Useful iterations: 3 (21.0ms)

IterNodesCost
0129138
1284136
2769136
32484134
45002134

prune35.0ms

Filtered
16 candidates to 10 candidates (62.5%)
Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New12416
Fresh000
Picked101
Done000
Total13417

Merged error: 14.9b

Counts
17 → 4

localize15.0ms

Local error

Found 4 expressions with local error:

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

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
16×tan-quot
frac-sub associate-/l/
associate-/r/
flip3-- flip3-+ fma-neg frac-add flip-- flip-+
frac-2neg clear-num div-inv
+-commutative frac-times sub-neg associate-*r/ associate-*l/ *-commutative
Counts
4 → 29
Calls
4 calls:
6.0ms
(/ (+ (tan x) (tan eps)) (- 1 (* (tan eps) (tan x))))
3.0ms
(+ (tan x) (tan eps))
3.0ms
(* (tan eps) (tan x))
9.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan eps) (tan x)))) (tan x))

series875.0ms

Counts
4 → 12
Calls
4 calls:
201.0ms
(/ (+ (tan x) (tan eps)) (- 1 (* (tan eps) (tan x))))
211.0ms
(+ (tan x) (tan eps))
87.0ms
(* (tan eps) (tan x))
374.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan eps) (tan x)))) (tan x))

simplify34.0ms

Algorithm
egg-herbie
Counts
41 → 41
Iterations

Useful iterations: 2 (29.0ms)

IterNodesCost
0325500
11162494
25002479

prune158.0ms

Filtered
41 candidates to 36 candidates (87.8%)
Pruning

12 alts after pruning (12 fresh and 0 done)

PrunedKeptTotal
New301141
Fresh213
Picked101
Done000
Total331245

Merged error: 14.7b

Counts
45 → 12

localize15.0ms

Local error

Found 4 expressions with local error:

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

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
12×tan-quot
frac-sub
associate-/l/
fma-neg
flip3-- frac-2neg flip3-+ associate-*l/ frac-add clear-num associate-/r/ *-commutative flip-- flip-+ div-inv associate-/l*
+-commutative sub-neg
Counts
4 → 25
Calls
4 calls:
5.0ms
(/ (* (tan eps) (sin x)) (cos x))
3.0ms
(+ (tan x) (tan eps))
3.0ms
(* (tan eps) (sin x))
9.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (/ (* (tan eps) (sin x)) (cos x)))) (tan x))

series605.0ms

Counts
4 → 12
Calls
4 calls:
91.0ms
(/ (* (tan eps) (sin x)) (cos x))
87.0ms
(+ (tan x) (tan eps))
67.0ms
(* (tan eps) (sin x))
361.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (/ (* (tan eps) (sin x)) (cos x)))) (tan x))

simplify34.0ms

Algorithm
egg-herbie
Counts
37 → 37
Iterations

Useful iterations: 2 (29.0ms)

IterNodesCost
0322462
11116455
25002438

prune148.0ms

Filtered
37 candidates to 30 candidates (81.1%)
Pruning

10 alts after pruning (10 fresh and 0 done)

PrunedKeptTotal
New29837
Fresh9211
Picked101
Done000
Total391049

Merged error: 14.7b

Counts
49 → 10

localize21.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (tan eps) (sin x))
0.2b
(* (tan eps) (sin x))
0.3b
(* (/ (* (tan eps) (sin x)) (cos x)) (/ (* (tan eps) (sin x)) (cos x)))
1.4b
(fma (/ (+ (tan x) (tan eps)) (- (* 1 1) (* (/ (* (tan eps) (sin x)) (cos x)) (/ (* (tan eps) (sin x)) (cos x))))) (+ 1 (/ (* (tan eps) (sin x)) (cos x))) (- (tan x)))

rewrite20.0ms

Algorithm
rewrite-expression-head
Rules
36×frac-times
28×associate-/l*
22×associate-*l/
17×*-commutative
16×tan-quot
15×clear-num
14×frac-2neg associate-/l/
associate-*r/
div-inv
pow2 swap-sqr associate-*r* associate-*l* un-div-inv fma-udef
Counts
4 → 59
Calls
4 calls:
3.0ms
(* (tan eps) (sin x))
3.0ms
(* (tan eps) (sin x))
11.0ms
(* (/ (* (tan eps) (sin x)) (cos x)) (/ (* (tan eps) (sin x)) (cos x)))
1.0ms
(fma (/ (+ (tan x) (tan eps)) (- (* 1 1) (* (/ (* (tan eps) (sin x)) (cos x)) (/ (* (tan eps) (sin x)) (cos x))))) (+ 1 (/ (* (tan eps) (sin x)) (cos x))) (- (tan x)))

series790.0ms

Counts
4 → 12
Calls
4 calls:
62.0ms
(* (tan eps) (sin x))
62.0ms
(* (tan eps) (sin x))
112.0ms
(* (/ (* (tan eps) (sin x)) (cos x)) (/ (* (tan eps) (sin x)) (cos x)))
553.0ms
(fma (/ (+ (tan x) (tan eps)) (- (* 1 1) (* (/ (* (tan eps) (sin x)) (cos x)) (/ (* (tan eps) (sin x)) (cos x))))) (+ 1 (/ (* (tan eps) (sin x)) (cos x))) (- (tan x)))

simplify52.0ms

Algorithm
egg-herbie
Counts
71 → 71
Iterations

Useful iterations: 2 (45.0ms)

IterNodesCost
0441742
12323694
25001690

prune221.0ms

Filtered
71 candidates to 41 candidates (57.7%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New69271
Fresh279
Picked101
Done000
Total72981

Merged error: 14.7b

Counts
81 → 9

regimes192.0ms

Accuracy

85% (1.2b remaining)

Error of 15.1b against oracle of 14.0b and baseline of 21.7b

bsearch120.0ms

Steps
ItersRangePoint
8
1.185487053096793e-108
9.185000414034106e-105
9.008897623605655e-105
9
-1.0196393039696783e-24
-9.763271116316594e-33
-2.0754543686162598e-29

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05653
16153
26253
36253

end0.0ms

sample2.5s

Algorithm
intervals
Results
1.3s3361×body1280valid
520.0ms614×body2560valid
374.0ms1808×body640valid
99.0ms769×body320valid
43.0ms1093×body80valid
31.0ms355×body160valid