Details

Time bar (total: 11.7s)

sample147.0ms

Algorithm
intervals
Results
66.0ms95×body1280valid
37.0ms22×body2560valid
23.0ms58×body640valid
6.0ms25×body320valid
3.0ms18×body160valid
3.0ms38×body80valid

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: 34.0b

localize13.0ms

Local error

Found 2 expressions with local error:

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

rewrite12.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))

series138.0ms

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

simplify80.0ms

Algorithm
egg-herbie
Counts
31 → 31
Iterations

Useful iterations: 3 (23.0ms)

IterNodesCost
0134211
1295202
2757200
32482199
45001199

prune91.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 13.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.0b
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

rewrite64.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:
13.0ms
(/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps))))
3.0ms
(+ (tan x) (tan eps))
5.0ms
(* (tan x) (tan eps))
40.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

series755.0ms

Counts
4 → 12
Calls
4 calls:
212.0ms
(/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps))))
92.0ms
(+ (tan x) (tan eps))
92.0ms
(* (tan x) (tan eps))
359.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

simplify48.0ms

Algorithm
egg-herbie
Counts
98 → 98
Iterations

Useful iterations: 2 (38.0ms)

IterNodesCost
03971050
114321005
25001995

prune295.0ms

Pruning

14 alts after pruning (14 fresh and 0 done)

Merged error: 13.2b

localize13.0ms

Local error

Found 4 expressions with local error:

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

rewrite119.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
(/ 1 (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps))))
5.0ms
(* (tan x) (tan eps))
10.0ms
(/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps)))
81.0ms
(- (/ 1 (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps)))) (tan x))

series934.0ms

Counts
4 → 12
Calls
4 calls:
212.0ms
(/ 1 (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps))))
93.0ms
(* (tan x) (tan eps))
266.0ms
(/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps)))
363.0ms
(- (/ 1 (/ (- 1 (* (tan x) (tan eps))) (+ (tan x) (tan eps)))) (tan x))

simplify83.0ms

Algorithm
egg-herbie
Counts
190 → 190
Iterations

Useful iterations: 2 (61.0ms)

IterNodesCost
07032793
132942509
250012506

prune420.0ms

Pruning

16 alts after pruning (16 fresh and 0 done)

Merged error: 13.2b

localize20.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (tan x) (tan eps))
0.2b
(/ (- (pow 1 3) (pow (* (tan x) (tan eps)) 3)) (* (+ (* (* (tan x) (tan eps)) (+ (* (tan x) (tan eps)) 1)) 1) (+ (tan x) (tan eps))))
0.3b
(pow (* (tan x) (tan eps)) 3)
7.1b
(- (/ 1 (/ (- (pow 1 3) (pow (* (tan x) (tan eps)) 3)) (* (+ (* (* (tan x) (tan eps)) (+ (* (tan x) (tan eps)) 1)) 1) (+ (tan x) (tan eps))))) (tan x))

rewrite505.0ms

Algorithm
rewrite-expression-head
Rules
42×add-sqr-sqrt
27×*-un-lft-identity difference-of-squares
20×times-frac
18×associate-/l*
17×sqr-pow
15×tan-quot
14×add-exp-log add-cbrt-cube
11×associate-/r/
pow1 add-cube-cbrt unpow-prod-down cube-prod
frac-times
flip3-+ flip-+
distribute-lft-out-- add-log-exp
associate-*r/
associate-*l/
cube-div cube-mult pow-unpow associate-*r* associate-*l* frac-add prod-exp cbrt-unprod
difference-cubes cbrt-undiv flip3-- pow-pow div-exp pow-prod-down pow-exp flip-- div-inv associate-/l/ rem-cube-cbrt
pow-to-exp sub-neg frac-2neg diff-log unpow3 div-sub clear-num associate-/r* *-commutative frac-sub unswap-sqr
Counts
4 → 129
Calls
4 calls:
5.0ms
(* (tan x) (tan eps))
68.0ms
(/ (- (pow 1 3) (pow (* (tan x) (tan eps)) 3)) (* (+ (* (* (tan x) (tan eps)) (+ (* (tan x) (tan eps)) 1)) 1) (+ (tan x) (tan eps))))
4.0ms
(pow (* (tan x) (tan eps)) 3)
423.0ms
(- (/ 1 (/ (- (pow 1 3) (pow (* (tan x) (tan eps)) 3)) (* (+ (* (* (tan x) (tan eps)) (+ (* (tan x) (tan eps)) 1)) 1) (+ (tan x) (tan eps))))) (tan x))

series2.3s

Counts
4 → 12
Calls
4 calls:
92.0ms
(* (tan x) (tan eps))
561.0ms
(/ (- (pow 1 3) (pow (* (tan x) (tan eps)) 3)) (* (+ (* (* (tan x) (tan eps)) (+ (* (tan x) (tan eps)) 1)) 1) (+ (tan x) (tan eps))))
126.0ms
(pow (* (tan x) (tan eps)) 3)
1.6s
(- (/ 1 (/ (- (pow 1 3) (pow (* (tan x) (tan eps)) 3)) (* (+ (* (* (tan x) (tan eps)) (+ (* (tan x) (tan eps)) 1)) 1) (+ (tan x) (tan eps))))) (tan x))

simplify50.0ms

Algorithm
egg-herbie
Counts
141 → 141
Iterations

Useful iterations: 1 (27.0ms)

IterNodesCost
010293005
150022737

prune495.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 0.2b

regimes108.0ms

Accuracy

0% (0.3b remaining)

Error of 0.5b against oracle of 0.3b and baseline of 0.5b

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
063114
163114

end0.0ms

sample4.9s

Algorithm
intervals
Results
2.4s3289×body1280valid
1.2s686×body2560valid
761.0ms1815×body640valid
218.0ms736×body320valid
98.0ms1115×body80valid
64.0ms359×body160valid