Details

Time bar (total: 13.0s)

sample199.0ms

Algorithm
intervals
Results
82.0ms96×body1280valid
60.0ms31×body2560valid
32.0ms64×body640valid
7.0ms21×body320valid
3.0ms31×body80valid
3.0ms13×body160valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
094
1104
2104

prune4.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 38.9b

localize9.0ms

Local error

Found 2 expressions with local error:

0.9b
(- (tan (+ x eps)) (tan x))
4.7b
(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))

series49.0ms

Counts
2 → 6
Calls
2 calls:
33.0ms
(- (tan (+ x eps)) (tan x))
16.0ms
(tan (+ x eps))

simplify74.0ms

Algorithm
egg-herbie
Counts
47 → 47
Iterations

Useful iterations: 3 (70.0ms)

IterNodesCost
0192420
1538319
22593310
35001255

prune260.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 15.4b

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

rewrite77.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))
50.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

series222.0ms

Counts
4 → 12
Calls
4 calls:
61.0ms
(/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps))))
23.0ms
(+ (tan x) (tan eps))
23.0ms
(* (tan x) (tan eps))
115.0ms
(- (/ (+ (tan x) (tan eps)) (- 1 (* (tan x) (tan eps)))) (tan x))

simplify73.0ms

Algorithm
egg-herbie
Counts
181 → 181
Iterations

Useful iterations: 2 (52.0ms)

IterNodesCost
05592915
120542366
250012345

prune1.2s

Pruning

16 alts after pruning (16 fresh and 0 done)

Merged error: 15.3b

localize20.0ms

Local error

Found 4 expressions with local error:

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

rewrite67.0ms

Algorithm
rewrite-expression-head
Rules
47×pow1
41×tan-quot
37×add-sqr-sqrt
33×*-un-lft-identity prod-diff
27×add-cube-cbrt
20×add-exp-log times-frac add-cbrt-cube
19×frac-times pow-prod-down
13×associate-*r/ associate-*l/
11×fma-neg
10×prod-exp cbrt-unprod
difference-of-squares
associate-/r/
associate-*r* associate-*l*
add-log-exp
flip3-- flip--
expm1-log1p-u pow-sqr pow-prod-up log1p-expm1-u div-inv
*-commutative
pow-plus unswap-sqr
pow2 sub-neg diff-log swap-sqr frac-sub distribute-lft-out--
Counts
4 → 158
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)))
30.0ms
(- (/ (* (+ (tan x) (tan eps)) (fma (tan x) (tan eps) 1)) (- 1 (* (* (tan x) (tan eps)) (* (tan x) (tan eps))))) (tan x))

series384.0ms

Counts
4 → 12
Calls
4 calls:
23.0ms
(* (tan x) (tan eps))
23.0ms
(* (tan x) (tan eps))
36.0ms
(* (* (tan x) (tan eps)) (* (tan x) (tan eps)))
303.0ms
(- (/ (* (+ (tan x) (tan eps)) (fma (tan x) (tan eps) 1)) (- 1 (* (* (tan x) (tan eps)) (* (tan x) (tan eps))))) (tan x))

simplify92.0ms

Algorithm
egg-herbie
Counts
170 → 170
Iterations

Useful iterations: 2 (73.0ms)

IterNodesCost
06522690
129382162
250012157

prune1.6s

Pruning

17 alts after pruning (17 fresh and 0 done)

Merged error: 15.2b

localize29.0ms

Local error

Found 4 expressions with local error:

0.3b
(pow (cos eps) 2)
0.3b
(pow (sin eps) 2)
0.3b
(* (tan x) (tan x))
2.2b
(- (/ (* (+ (tan x) (tan eps)) (fma (tan x) (tan eps) 1)) (- 1 (/ (* (* (tan x) (tan x)) (pow (sin eps) 2)) (pow (cos eps) 2)))) (tan x))

rewrite139.0ms

Algorithm
rewrite-expression-head
Rules
48×add-sqr-sqrt
46×*-un-lft-identity
36×prod-diff
32×add-cube-cbrt
24×times-frac
13×pow1
12×fma-neg
difference-of-squares
add-exp-log associate-/r/
unpow-prod-down pow-unpow add-cbrt-cube add-log-exp
tan-quot flip3-- flip-- distribute-lft-out--
expm1-log1p-u log1p-expm1-u div-inv
swap-sqr associate-*r* associate-*l*
pow-to-exp pow-pow pow-exp unpow2 sqr-pow
pow2 frac-times sub-neg pow-plus diff-log associate-*r/ pow-prod-down associate-*l/ prod-exp pow-sqr *-commutative pow-prod-up frac-sub cbrt-unprod unswap-sqr
Counts
4 → 135
Calls
4 calls:
2.0ms
(pow (cos eps) 2)
1.0ms
(pow (sin eps) 2)
5.0ms
(* (tan x) (tan x))
126.0ms
(- (/ (* (+ (tan x) (tan eps)) (fma (tan x) (tan eps) 1)) (- 1 (/ (* (* (tan x) (tan x)) (pow (sin eps) 2)) (pow (cos eps) 2)))) (tan x))

series326.0ms

Counts
4 → 12
Calls
4 calls:
3.0ms
(pow (cos eps) 2)
3.0ms
(pow (sin eps) 2)
11.0ms
(* (tan x) (tan x))
308.0ms
(- (/ (* (+ (tan x) (tan eps)) (fma (tan x) (tan eps) 1)) (- 1 (/ (* (* (tan x) (tan x)) (pow (sin eps) 2)) (pow (cos eps) 2)))) (tan x))

simplify75.0ms

Algorithm
egg-herbie
Counts
147 → 147
Iterations

Useful iterations: 2 (55.0ms)

IterNodesCost
05792692
123972181
250012173

prune1.5s

Pruning

17 alts after pruning (17 fresh and 0 done)

Merged error: 15.2b

regimes546.0ms

Accuracy

87% (0.9b remaining)

Error of 15.8b against oracle of 14.9b and baseline of 22.1b

bsearch140.0ms

Steps
ItersRangePoint
9
1.9540685346212126e-24
9.316647860064626e-18
1.047829285418837e-23
8
-5.529960614046254e-31
-1.2848272222116945e-35
-4.530799695865795e-32

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05480
15480

end0.0ms

sample6.0s

Algorithm
intervals
Results
3.1s3364×body1280valid
1.3s667×body2560valid
952.0ms1800×body640valid
281.0ms787×body320valid
120.0ms1032×body80valid
83.0ms350×body160valid