Details

Time bar (total: 6.8s)

sample92.0ms

Algorithm
intervals
Results
45.0ms111×body1280valid
20.0ms22×body2560valid
13.0ms61×body640valid
4.0ms25×body320valid
1.0ms31×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: 37.8b

Counts
2 → 1

localize9.0ms

Local error

Found 2 expressions with local error:

0.2b
(- (tan (+ x eps)) (tan x))
3.1b
(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:
7.0ms
(- (tan (+ x eps)) (tan x))
4.0ms
(tan (+ x eps))

series134.0ms

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

simplify79.0ms

Algorithm
egg-herbie
Counts
31 → 31
Iterations

Useful iterations: 3 (23.0ms)

IterNodesCost
0134211
1295202
2757200
32482199
45001199

prune78.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.5b

Counts
32 → 8

localize11.0ms

Local error

Found 4 expressions with local error:

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

rewrite24.0ms

Algorithm
rewrite-expression-head
Rules
13×add-sqr-sqrt
10×*-un-lft-identity add-log-exp
tan-quot
pow1 add-exp-log add-cube-cbrt add-cbrt-cube
associate-*r* associate-*l*
sub-neg flip3-- diff-log flip-- difference-of-squares
+-commutative frac-times flip3-+ times-frac associate-*r/ pow-prod-down associate-*l/ frac-add prod-exp sum-log *-commutative frac-sub cbrt-unprod flip-+ distribute-lft-out distribute-lft-out-- unswap-sqr
Counts
4 → 62
Calls
4 calls:
3.0ms
(- 1 (* (tan x) (tan eps)))
4.0ms
(+ (tan x) (tan eps))
5.0ms
(* (tan x) (tan eps))
11.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

series616.0ms

Counts
4 → 12
Calls
4 calls:
103.0ms
(- 1 (* (tan x) (tan eps)))
87.0ms
(+ (tan x) (tan eps))
86.0ms
(* (tan x) (tan eps))
339.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

simplify128.0ms

Algorithm
egg-herbie
Counts
74 → 74
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0343662
11170624
24756614
35001614

prune211.0ms

Filtered
74 candidates to 56 candidates (75.7%)
Pruning

17 alts after pruning (17 fresh and 0 done)

PrunedKeptTotal
New601474
Fresh437
Picked101
Done000
Total651782

Merged error: 14.4b

Counts
82 → 17

localize17.0ms

Local error

Found 4 expressions with local error:

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

rewrite34.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 associate-*r/ div-exp 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))
6.0ms
(/ (* (sin x) (tan eps)) (cos x))
5.0ms
(* (sin x) (tan eps))
17.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (/ (* (sin x) (tan eps)) (cos x)))) (tan x))

series623.0ms

Counts
4 → 12
Calls
4 calls:
87.0ms
(+ (tan x) (tan eps))
98.0ms
(/ (* (sin x) (tan eps)) (cos x))
76.0ms
(* (sin x) (tan eps))
362.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (/ (* (sin x) (tan eps)) (cos x)))) (tan x))

simplify45.0ms

Algorithm
egg-herbie
Counts
82 → 82
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0389785
11406711
25001699

prune241.0ms

Filtered
82 candidates to 61 candidates (74.4%)
Pruning

18 alts after pruning (17 fresh and 1 done)

PrunedKeptTotal
New79382
Fresh21416
Picked011
Done000
Total811899

Merged error: 14.4b

Counts
99 → 18

localize16.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (tan x) (tan eps))
0.2b
(* (tan x) (tan eps))
0.3b
(* (* (tan x) (tan eps)) (* (tan x) (tan eps)))
1.9b
(- (/ (+ (tan x) (tan eps)) (/ (- 1 (* (* (tan x) (tan eps)) (* (tan x) (tan eps)))) (+ 1 (* (tan x) (tan eps))))) (tan x))

rewrite60.0ms

Algorithm
rewrite-expression-head
Rules
47×pow1
41×tan-quot
21×add-sqr-sqrt
20×add-exp-log add-cbrt-cube
19×frac-times pow-prod-down
13×associate-*r/ associate-*l/
10×*-un-lft-identity prod-exp cbrt-unprod
add-cube-cbrt
associate-*r* associate-*l*
add-log-exp
pow-sqr pow-prod-up
times-frac *-commutative difference-of-squares
pow-plus unswap-sqr
pow2 sub-neg flip3-- diff-log swap-sqr frac-sub flip-- distribute-lft-out--
Counts
4 → 108
Calls
4 calls:
5.0ms
(* (tan x) (tan eps))
6.0ms
(* (tan x) (tan eps))
11.0ms
(* (* (tan x) (tan eps)) (* (tan x) (tan eps)))
35.0ms
(- (/ (+ (tan x) (tan eps)) (/ (- 1 (* (* (tan x) (tan eps)) (* (tan x) (tan eps)))) (+ 1 (* (tan x) (tan eps))))) (tan x))

series1.2s

Counts
4 → 12
Calls
4 calls:
86.0ms
(* (tan x) (tan eps))
87.0ms
(* (tan x) (tan eps))
112.0ms
(* (* (tan x) (tan eps)) (* (tan x) (tan eps)))
869.0ms
(- (/ (+ (tan x) (tan eps)) (/ (- 1 (* (* (tan x) (tan eps)) (* (tan x) (tan eps)))) (+ 1 (* (tan x) (tan eps))))) (tan x))

simplify60.0ms

Algorithm
egg-herbie
Counts
120 → 120
Iterations

Useful iterations: 2 (48.0ms)

IterNodesCost
04871344
121551184
250021111

prune238.0ms

Filtered
120 candidates to 73 candidates (60.8%)
Pruning

17 alts after pruning (17 fresh and 0 done)

PrunedKeptTotal
New1173120
Fresh21416
Picked101
Done101
Total12117138

Merged error: 14.4b

Counts
138 → 17

regimes183.0ms

Accuracy

89.1% (0.8b remaining)

Error of 15.2b against oracle of 14.4b and baseline of 21.7b

bsearch109.0ms

Steps
ItersRangePoint
8
2.255896759856785e-46
1.8629716801109002e-42
1.2660897646861507e-42
7
-6.796277293523942e-28
-1.1064465835999565e-29
-1.4477006368600308e-29

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05362
15362

end0.0ms

sample2.7s

Algorithm
intervals
Results
1.3s3281×body1280valid
547.0ms622×body2560valid
418.0ms1859×body640valid
123.0ms834×body320valid
50.0ms1057×body80valid
34.0ms347×body160valid

Profiling

Loading profile data...