Details

Time bar (total: 10.6s)

sample178.0ms

Algorithm
intervals
Results
73.0ms92×body1280valid
41.0ms23×body2560valid
40.0ms73×body640valid
7.0ms21×body320valid
4.0ms36×body80valid
3.0ms11×body160valid

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

localize9.0ms

Local error

Found 2 expressions with local error:

1.3b
(- (tan (+ x eps)) (tan x))
3.4b
(tan (+ x eps))

rewrite13.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:
8.0ms
(- (tan (+ x eps)) (tan x))
3.0ms
(tan (+ x eps))

series144.0ms

Counts
2 → 6
Calls
2 calls:
90.0ms
(- (tan (+ x eps)) (tan x))
55.0ms
(tan (+ x eps))

simplify88.0ms

Algorithm
egg-herbie
Counts
47 → 47
Iterations

Useful iterations: 3 (83.0ms)

IterNodesCost
0192420
1538319
22593310
35001255

prune131.0ms

Pruning

12 alts after pruning (12 fresh and 0 done)

Merged error: 16.2b

localize11.0ms

Local error

Found 4 expressions with local error:

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

rewrite80.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:
11.0ms
(/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps))))
3.0ms
(+ (tan x) (tan eps))
5.0ms
(* (tan x) (tan eps))
52.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

series779.0ms

Counts
4 → 12
Calls
4 calls:
221.0ms
(/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps))))
95.0ms
(+ (tan x) (tan eps))
94.0ms
(* (tan x) (tan eps))
369.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

simplify74.0ms

Algorithm
egg-herbie
Counts
181 → 181
Iterations

Useful iterations: 2 (53.0ms)

IterNodesCost
05592915
120542366
250012345

prune471.0ms

Pruning

16 alts after pruning (16 fresh and 0 done)

Merged error: 16.1b

localize17.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)))
4.0b
(fma (/ (+ (tan x) (tan eps)) (- (* 1 1) (* (* (tan x) (tan eps)) (* (tan x) (tan eps))))) (+ 1 (* (tan x) (tan eps))) (- (tan x)))

rewrite36.0ms

Algorithm
rewrite-expression-head
Rules
47×pow1
40×tan-quot
20×add-exp-log add-cbrt-cube
19×frac-times pow-prod-down
13×associate-*r/ associate-*l/
12×add-sqr-sqrt
10×prod-exp cbrt-unprod
add-cube-cbrt *-un-lft-identity
associate-*r* associate-*l*
expm1-log1p-u pow-sqr pow-prod-up log1p-expm1-u add-log-exp
*-commutative
pow-plus unswap-sqr
pow2 swap-sqr fma-udef
Counts
4 → 107
Calls
4 calls:
5.0ms
(* (tan x) (tan eps))
5.0ms
(* (tan x) (tan eps))
21.0ms
(* (* (tan x) (tan eps)) (* (tan x) (tan eps)))
0.0ms
(fma (/ (+ (tan x) (tan eps)) (- (* 1 1) (* (* (tan x) (tan eps)) (* (tan x) (tan eps))))) (+ 1 (* (tan x) (tan eps))) (- (tan x)))

series906.0ms

Counts
4 → 12
Calls
4 calls:
95.0ms
(* (tan x) (tan eps))
96.0ms
(* (tan x) (tan eps))
119.0ms
(* (* (tan x) (tan eps)) (* (tan x) (tan eps)))
597.0ms
(fma (/ (+ (tan x) (tan eps)) (- (* 1 1) (* (* (tan x) (tan eps)) (* (tan x) (tan eps))))) (+ 1 (* (tan x) (tan eps))) (- (tan x)))

simplify62.0ms

Algorithm
egg-herbie
Counts
119 → 119
Iterations

Useful iterations: 2 (46.0ms)

IterNodesCost
04321098
11952917
25001864

prune407.0ms

Pruning

17 alts after pruning (17 fresh and 0 done)

Merged error: 16.1b

localize22.0ms

Local error

Found 4 expressions with local error:

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

rewrite30.0ms

Algorithm
rewrite-expression-head
Rules
32×add-exp-log add-cbrt-cube
13×tan-quot prod-exp cbrt-unprod
12×add-sqr-sqrt
11×pow1
10×add-cube-cbrt *-un-lft-identity associate-*r*
cbrt-undiv frac-times times-frac div-exp associate-*l/
associate-*r/
expm1-log1p-u associate-*l* pow-prod-down log1p-expm1-u add-log-exp
associate-/r*
*-commutative div-inv
frac-2neg clear-num fma-udef associate-/l/ associate-/l* unswap-sqr
Counts
4 → 96
Calls
4 calls:
5.0ms
(* (tan x) (tan eps))
5.0ms
(/ (* (sin x) (tan eps)) (cos x))
17.0ms
(* (* (tan x) (tan eps)) (/ (* (sin x) (tan eps)) (cos x)))
0.0ms
(fma (/ (+ (tan x) (tan eps)) (- (* 1 1) (* (* (tan x) (tan eps)) (/ (* (sin x) (tan eps)) (cos x))))) (+ 1 (* (tan x) (tan eps))) (- (tan x)))

series965.0ms

Counts
4 → 12
Calls
4 calls:
95.0ms
(* (tan x) (tan eps))
104.0ms
(/ (* (sin x) (tan eps)) (cos x))
149.0ms
(* (* (tan x) (tan eps)) (/ (* (sin x) (tan eps)) (cos x)))
617.0ms
(fma (/ (+ (tan x) (tan eps)) (- (* 1 1) (* (* (tan x) (tan eps)) (/ (* (sin x) (tan eps)) (cos x))))) (+ 1 (* (tan x) (tan eps))) (- (tan x)))

simplify75.0ms

Algorithm
egg-herbie
Counts
108 → 108
Iterations

Useful iterations: 2 (60.0ms)

IterNodesCost
05451309
129251060
250021059

prune407.0ms

Pruning

17 alts after pruning (16 fresh and 1 done)

Merged error: 16.1b

regimes187.0ms

Accuracy

87.8% (0.9b remaining)

Error of 15.9b against oracle of 15.0b and baseline of 22.5b

bsearch168.0ms

Steps
ItersRangePoint
8
1.4969758855213984e-44
4.87546518652314e-42
2.69186416397234e-43
7
-3.9570119562060503e-20
-1.6549662793807668e-21
-2.859692106909577e-20

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04649
14649

end0.0ms

sample5.3s

Algorithm
intervals
Results
2.6s3275×body1280valid
1.2s660×body2560valid
861.0ms1796×body640valid
254.0ms795×body320valid
146.0ms1120×body80valid
82.0ms354×body160valid