Details

Time bar (total: 8.1s)

sample40.0ms

Algorithm
intervals
Results
13.0ms46×body1280valid
9.0ms46×body640valid
8.0ms138×body80valid
2.0ms16×body320valid
1.0ms10×body160valid

simplify23.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0126
1166
2196
3216
4276
5396
6586
7796
81076
91606
102776
113036
123036

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 27.4b

localize6.0ms

Local error

Found 3 expressions with local error:

0.0b
(/ x (+ x 1.0))
0.0b
(/ (+ x 1.0) (- x 1.0))
2.3b
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

rewrite146.0ms

Algorithm
rewrite-expression-head
Rules
981×*-un-lft-identity
736×times-frac
585×add-sqr-sqrt
468×prod-diff
419×add-cube-cbrt
189×distribute-lft-out
94×associate-/r/
90×distribute-lft-out--
81×difference-of-squares
47×div-inv
29×flip3-+ flip-+
20×flip3-- flip--
18×fma-neg
associate-/r*
add-exp-log add-cbrt-cube associate-/l*
add-log-exp
pow1 expm1-log1p-u log1p-expm1-u
cbrt-undiv frac-2neg div-exp clear-num associate-/l/
sub-neg diff-log frac-sub
Counts
3 → 596
Calls
3 calls:
5.0ms
(/ x (+ x 1.0))
11.0ms
(/ (+ x 1.0) (- x 1.0))
75.0ms
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

series205.0ms

Counts
3 → 9
Calls
3 calls:
35.0ms
(/ x (+ x 1.0))
37.0ms
(/ (+ x 1.0) (- x 1.0))
133.0ms
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

simplify225.0ms

Algorithm
egg-herbie
Counts
605 → 605
Iterations

Useful iterations: 2 (102.0ms)

IterNodesCost
0120818366
1368713388
2500113292

prune736.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 0.2b

localize15.0ms

Local error

Found 4 expressions with local error:

12.9b
(/ x (- (* x x) (* 1.0 1.0)))
12.9b
(/ (+ x 1.0) (- (* x x) (* 1.0 1.0)))
12.9b
(/ (+ x 1.0) (- (* x x) (* 1.0 1.0)))
28.0b
(fma (/ x (- (* x x) (* 1.0 1.0))) (- x 1.0) (- (* (+ x 1.0) (/ (+ x 1.0) (- (* x x) (* 1.0 1.0))))))

rewrite33.0ms

Algorithm
rewrite-expression-head
Rules
53×*-un-lft-identity
44×times-frac
33×add-sqr-sqrt add-cube-cbrt
14×difference-of-squares
12×associate-/r*
11×associate-/l*
10×add-exp-log add-cbrt-cube distribute-lft-out
associate-/r/
pow1 expm1-log1p-u log1p-expm1-u associate-/l/ add-log-exp
cbrt-undiv flip3-- frac-2neg div-exp clear-num flip-- div-inv
flip3-+ flip-+
fma-udef
Counts
4 → 129
Calls
4 calls:
5.0ms
(/ x (- (* x x) (* 1.0 1.0)))
11.0ms
(/ (+ x 1.0) (- (* x x) (* 1.0 1.0)))
14.0ms
(/ (+ x 1.0) (- (* x x) (* 1.0 1.0)))
0.0ms
(fma (/ x (- (* x x) (* 1.0 1.0))) (- x 1.0) (- (* (+ x 1.0) (/ (+ x 1.0) (- (* x x) (* 1.0 1.0))))))

series325.0ms

Counts
4 → 12
Calls
4 calls:
71.0ms
(/ x (- (* x x) (* 1.0 1.0)))
41.0ms
(/ (+ x 1.0) (- (* x x) (* 1.0 1.0)))
36.0ms
(/ (+ x 1.0) (- (* x x) (* 1.0 1.0)))
177.0ms
(fma (/ x (- (* x x) (* 1.0 1.0))) (- x 1.0) (- (* (+ x 1.0) (/ (+ x 1.0) (- (* x x) (* 1.0 1.0))))))

simplify54.0ms

Algorithm
egg-herbie
Counts
141 → 141
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
03931262
116001156
250011097

prune408.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 0.2b

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ (- (* (/ x (+ x 1.0)) (/ x (+ x 1.0))) (* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0)))) (+ (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0))))
0.0b
(* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0)))
0.0b
(* (/ x (+ x 1.0)) (/ x (+ x 1.0)))
2.2b
(- (* (/ x (+ x 1.0)) (/ x (+ x 1.0))) (* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0))))

rewrite225.0ms

Algorithm
rewrite-expression-head
Rules
544×*-un-lft-identity
320×times-frac
170×add-sqr-sqrt
141×distribute-lft-out
106×add-cube-cbrt
72×swap-sqr
52×distribute-lft-out--
44×associate-*r* associate-*l*
34×difference-of-squares
30×add-exp-log add-cbrt-cube
19×associate-/r/
18×pow1 frac-sub
14×frac-times associate-*r/ associate-*l/
12×associate-/r*
11×associate-/l/
cbrt-undiv div-exp div-inv
prod-exp cbrt-unprod unswap-sqr
flip3-- flip-- add-log-exp
flip3-+ flip-+
expm1-log1p-u log1p-expm1-u associate-/l*
pow2 pow-plus pow-prod-down pow-sqr *-commutative pow-prod-up
sub-neg frac-2neg fma-neg diff-log div-sub prod-diff frac-add clear-num
Counts
4 → 339
Calls
4 calls:
109.0ms
(/ (- (* (/ x (+ x 1.0)) (/ x (+ x 1.0))) (* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0)))) (+ (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0))))
50.0ms
(* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0)))
33.0ms
(* (/ x (+ x 1.0)) (/ x (+ x 1.0)))
11.0ms
(- (* (/ x (+ x 1.0)) (/ x (+ x 1.0))) (* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0))))

series862.0ms

Counts
4 → 12
Calls
4 calls:
549.0ms
(/ (- (* (/ x (+ x 1.0)) (/ x (+ x 1.0))) (* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0)))) (+ (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0))))
58.0ms
(* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0)))
47.0ms
(* (/ x (+ x 1.0)) (/ x (+ x 1.0)))
207.0ms
(- (* (/ x (+ x 1.0)) (/ x (+ x 1.0))) (* (/ (+ x 1.0) (- x 1.0)) (/ (+ x 1.0) (- x 1.0))))

simplify77.0ms

Algorithm
egg-herbie
Counts
351 → 351
Iterations

Useful iterations: 1 (28.0ms)

IterNodesCost
013395093
150014844

prune518.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 0.1b

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ (+ x 1.0) (- x 1.0))
0.0b
(* (+ (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0))) (/ (- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0))) (+ (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))))
0.0b
(/ (- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0))) (+ (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0))))
2.3b
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

rewrite1.1s

Algorithm
rewrite-expression-head
Rules
3739×*-un-lft-identity
2153×times-frac
963×distribute-lft-out
942×add-sqr-sqrt
551×distribute-lft-out--
471×add-cube-cbrt
468×prod-diff
199×associate-*r*
181×difference-of-squares
98×associate-/r/
48×div-inv
32×flip3-+ flip-+
21×flip3-- flip--
20×associate-/l*
18×fma-neg
17×associate-/r*
13×add-exp-log add-cbrt-cube
12×associate-*l*
pow1 add-log-exp
associate-/l/
expm1-log1p-u frac-add log1p-expm1-u
cbrt-undiv frac-times div-exp associate-*l/
frac-2neg prod-exp clear-num frac-sub cbrt-unprod unswap-sqr
sub-neg diff-log div-sub associate-*r/ pow-prod-down *-commutative
Counts
4 → 1037
Calls
4 calls:
11.0ms
(/ (+ x 1.0) (- x 1.0))
563.0ms
(* (+ (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0))) (/ (- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0))) (+ (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))))
271.0ms
(/ (- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0))) (+ (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0))))
75.0ms
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

series582.0ms

Counts
4 → 12
Calls
4 calls:
38.0ms
(/ (+ x 1.0) (- x 1.0))
135.0ms
(* (+ (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0))) (/ (- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0))) (+ (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))))
272.0ms
(/ (- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0))) (+ (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0))))
137.0ms
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

simplify247.0ms

Algorithm
egg-herbie
Counts
1049 → 1049
Iterations

Useful iterations: 1 (34.0ms)

IterNodesCost
0163426096
1500121903

prune1.1s

Pruning

8 alts after pruning (6 fresh and 2 done)

Merged error: 0.1b

regimes53.0ms

Accuracy

99.9% (0.0b remaining)

Error of 0.2b against oracle of 0.2b and baseline of 28.7b

bsearch108.0ms

Steps
ItersRangePoint
9
1654.2658435481542
671819857.7007226
11170.255305991283
9
-27324391.726681516
-29.541817090935037
-10556.320992542807

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04945
14945

end0.0ms

sample1.1s

Algorithm
intervals
Results
388.0ms1670×body1280valid
261.0ms4159×body80valid
239.0ms1261×body640valid
89.0ms603×body320valid
37.0ms307×body160valid