Details

Time bar (total: 9.9s)

sample142.0ms

Algorithm
intervals
Results
67.0ms96×body1280valid
27.0ms17×body2560valid
24.0ms62×body640valid
9.0ms35×body320valid
3.0ms34×body80valid
2.0ms12×body160valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
094
1104
2104

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 38.0b

localize8.0ms

Local error

Found 2 expressions with local error:

2.1b
(- (tan (+ x eps)) (tan x))
2.6b
(tan (+ x eps))

rewrite29.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:
22.0ms
(- (tan (+ x eps)) (tan x))
6.0ms
(tan (+ x eps))

series145.0ms

Counts
2 → 6
Calls
2 calls:
94.0ms
(- (tan (+ x eps)) (tan x))
51.0ms
(tan (+ x eps))

simplify83.0ms

Algorithm
egg-herbie
Counts
31 → 31
Iterations

Useful iterations: 3 (25.0ms)

IterNodesCost
0134211
1295202
2757200
32482199
45001199

prune86.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 14.4b

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))
4.5b
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

rewrite130.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:
29.0ms
(/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps))))
8.0ms
(+ (tan x) (tan eps))
14.0ms
(* (tan x) (tan eps))
76.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

series792.0ms

Counts
4 → 12
Calls
4 calls:
225.0ms
(/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps))))
97.0ms
(+ (tan x) (tan eps))
95.0ms
(* (tan x) (tan eps))
375.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

simplify44.0ms

Algorithm
egg-herbie
Counts
98 → 98
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
03971050
114321005
25001995

prune267.0ms

Pruning

15 alts after pruning (15 fresh and 0 done)

Merged error: 14.3b

localize21.0ms

Local error

Found 4 expressions with local error:

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

rewrite276.0ms

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

series639.0ms

Counts
4 → 12
Calls
4 calls:
100.0ms
(+ (tan x) (tan eps))
48.0ms
(* (sin x) (sin eps))
103.0ms
(/ (* (sin x) (sin eps)) (* (cos eps) (cos x)))
388.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (/ (* (sin x) (sin eps)) (* (cos eps) (cos x))))) (tan x))

simplify48.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 1 (11.0ms)

IterNodesCost
0437917
11799792
25001792

prune324.0ms

Pruning

16 alts after pruning (16 fresh and 0 done)

Merged error: 14.3b

localize12.0ms

Local error

Found 4 expressions with local error:

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

rewrite203.0ms

Algorithm
rewrite-expression-head
Rules
123×times-frac
104×*-un-lft-identity
83×add-sqr-sqrt
67×add-cube-cbrt
23×associate-/r*
19×add-exp-log
16×associate-/r/ distribute-lft-out
15×tan-quot
13×add-cbrt-cube
div-exp
pow1 div-inv
associate-/l* add-log-exp
flip3-+ frac-add flip-+ difference-of-squares
cbrt-undiv
associate-*r* associate-*l*
rec-exp flip3-- frac-2neg 1-exp clear-num flip-- associate-/l/ distribute-lft-out--
frac-times sub-neg pow-flip diff-log div-sub associate-*r/ pow-prod-down associate-*l/ prod-exp *-commutative frac-sub cbrt-unprod inv-pow unswap-sqr
Counts
4 → 178
Calls
4 calls:
15.0ms
(* (tan x) (tan eps))
24.0ms
(/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps)))
25.0ms
(/ 1 (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps))))
132.0ms
(- (/ 1 (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps)))) (tan x))

series991.0ms

Counts
4 → 12
Calls
4 calls:
98.0ms
(* (tan x) (tan eps))
285.0ms
(/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps)))
223.0ms
(/ 1 (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps))))
384.0ms
(- (/ 1 (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps)))) (tan x))

simplify80.0ms

Algorithm
egg-herbie
Counts
190 → 190
Iterations

Useful iterations: 2 (60.0ms)

IterNodesCost
07032793
132942509
250012506

prune350.0ms

Pruning

18 alts after pruning (18 fresh and 0 done)

Merged error: 14.2b

regimes185.0ms

Accuracy

89.1% (0.8b remaining)

Error of 15.1b against oracle of 14.3b and baseline of 21.8b

bsearch162.0ms

Steps
ItersRangePoint
9
4.9236548997223346e-36
6.481252319714892e-31
1.9383709758799288e-31
9
-2.2082264187638084e-10
-1.8774124276059505e-19
-9.832752395103018e-18

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03522
13522

end0.0ms

sample4.8s

Algorithm
intervals
Results
2.4s3249×body1280valid
1.1s660×body2560valid
759.0ms1872×body640valid
196.0ms764×body320valid
90.0ms1126×body80valid
64.0ms329×body160valid