Details

Time bar (total: 9.2s)

sample154.0ms

Algorithm
intervals
Results
72.0ms97×body1280valid
36.0ms22×body2560valid
26.0ms69×body640valid
5.0ms20×body320valid
3.0ms39×body80valid
2.0msbody160valid

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.1b

localize9.0ms

Local error

Found 2 expressions with local error:

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

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt *-un-lft-identity
add-cube-cbrt prod-diff
tan-quot add-log-exp
fma-neg
pow1 add-exp-log expm1-log1p-u tan-sum frac-sub add-cbrt-cube log1p-expm1-u
sub-neg flip3-- diff-log flip-- distribute-lft-out-- difference-of-squares
Counts
2 → 41
Calls
2 calls:
17.0ms
(- (tan (+ x eps)) (tan x))
7.0ms
(tan (+ x eps))

series151.0ms

Counts
2 → 6
Calls
2 calls:
95.0ms
(- (tan (+ x eps)) (tan x))
56.0ms
(tan (+ x eps))

simplify78.0ms

Algorithm
egg-herbie
Counts
47 → 47
Iterations

Useful iterations: 3 (74.0ms)

IterNodesCost
0192420
1538319
22593310
35001255

prune121.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 16.0b

localize12.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.3b
(* (tan x) (tan eps))
2.0b
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

rewrite155.0ms

Algorithm
rewrite-expression-head
Rules
102×*-un-lft-identity
73×add-sqr-sqrt
66×add-cube-cbrt
61×times-frac
54×prod-diff
18×fma-neg
17×distribute-lft-out
10×associate-/r/
tan-quot
add-exp-log add-cbrt-cube add-log-exp
pow1 flip3-- flip--
div-inv
expm1-log1p-u log1p-expm1-u associate-/l*
fma-def associate-*r* associate-*l* associate-/r* associate-/l/
flip3-+ frac-add 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 distribute-lft-out-- unswap-sqr
Counts
4 → 169
Calls
4 calls:
8.0ms
(+ (tan x) (tan eps))
28.0ms
(/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps))))
16.0ms
(* (tan x) (tan eps))
95.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

series810.0ms

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

simplify75.0ms

Algorithm
egg-herbie
Counts
181 → 181
Iterations

Useful iterations: 2 (51.0ms)

IterNodesCost
05592923
120542373
250012349

prune413.0ms

Pruning

14 alts after pruning (14 fresh and 0 done)

Merged error: 15.9b

localize18.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ 1 (- 1 (* (tan x) (tan eps))))
0.1b
(+ (tan x) (tan eps))
0.3b
(* (tan x) (tan eps))
2.0b
(fma (+ (tan x) (tan eps)) (/ 1 (- 1 (* (tan x) (tan eps)))) (- (tan x)))

rewrite36.0ms

Algorithm
rewrite-expression-head
Rules
17×add-sqr-sqrt *-un-lft-identity
15×add-cube-cbrt
10×add-exp-log
times-frac
add-cbrt-cube
pow1
tan-quot add-log-exp
expm1-log1p-u log1p-expm1-u
fma-def associate-*r* associate-*l* associate-/r* associate-/l*
div-exp associate-/r/
cbrt-undiv +-commutative frac-times rec-exp flip3-- pow-flip frac-2neg flip3-+ 1-exp associate-*r/ pow-prod-down associate-*l/ frac-add prod-exp clear-num sum-log *-commutative flip-- cbrt-unprod flip-+ fma-udef div-inv distribute-lft-out inv-pow unswap-sqr
Counts
4 → 86
Calls
4 calls:
10.0ms
(/ 1 (- 1 (* (tan x) (tan eps))))
8.0ms
(+ (tan x) (tan eps))
15.0ms
(* (tan x) (tan eps))
0.0ms
(fma (+ (tan x) (tan eps)) (/ 1 (- 1 (* (tan x) (tan eps)))) (- (tan x)))

series646.0ms

Counts
4 → 12
Calls
4 calls:
135.0ms
(/ 1 (- 1 (* (tan x) (tan eps))))
99.0ms
(+ (tan x) (tan eps))
100.0ms
(* (tan x) (tan eps))
312.0ms
(fma (+ (tan x) (tan eps)) (/ 1 (- 1 (* (tan x) (tan eps)))) (- (tan x)))

simplify49.0ms

Algorithm
egg-herbie
Counts
98 → 98
Iterations

Useful iterations: 1 (11.0ms)

IterNodesCost
0367754
11426679
25001679

prune297.0ms

Pruning

14 alts after pruning (14 fresh and 0 done)

Merged error: 15.8b

localize22.0ms

Local error

Found 4 expressions with local error:

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

rewrite40.0ms

Algorithm
rewrite-expression-head
Rules
11×add-exp-log add-sqr-sqrt *-un-lft-identity add-cbrt-cube
add-cube-cbrt
pow1 add-log-exp
tan-quot expm1-log1p-u log1p-expm1-u
fma-def times-frac associate-*r* associate-*l* associate-/r*
cbrt-undiv div-exp associate-*l/ prod-exp cbrt-unprod
+-commutative frac-2neg flip3-+ pow-prod-down frac-add clear-num sum-log *-commutative flip-+ fma-udef div-inv associate-/l/ distribute-lft-out associate-/l* unswap-sqr
Counts
4 → 73
Calls
4 calls:
8.0ms
(+ (tan x) (tan eps))
16.0ms
(/ (* (tan x) (sin eps)) (cos eps))
14.0ms
(* (tan x) (sin eps))
0.0ms
(fma (+ (tan x) (tan eps)) (/ 1 (- 1 (/ (* (tan x) (sin eps)) (cos eps)))) (- (tan x)))

series597.0ms

Counts
4 → 12
Calls
4 calls:
103.0ms
(+ (tan x) (tan eps))
104.0ms
(/ (* (tan x) (sin eps)) (cos eps))
73.0ms
(* (tan x) (sin eps))
317.0ms
(fma (+ (tan x) (tan eps)) (/ 1 (- 1 (/ (* (tan x) (sin eps)) (cos eps)))) (- (tan x)))

simplify43.0ms

Algorithm
egg-herbie
Counts
85 → 85
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0350661
11333582
25001581

prune298.0ms

Pruning

14 alts after pruning (13 fresh and 1 done)

Merged error: 15.8b

regimes153.0ms

Accuracy

87.9% (0.9b remaining)

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

bsearch131.0ms

Steps
ItersRangePoint
7
4.306367868598726e-53
1.341374174211449e-51
1.5672909055063217e-52
7
-2.4941919585295986e-29
-1.9547976034035862e-31
-1.7700780661170397e-29

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03949
13949

end0.0ms

sample4.9s

Algorithm
intervals
Results
2.4s3234×body1280valid
1.1s653×body2560valid
791.0ms1898×body640valid
222.0ms778×body320valid
98.0ms1115×body80valid
58.0ms322×body160valid