Details

Time bar (total: 6.0s)

sample39.0ms

Algorithm
intervals
Results
15.0ms67×body1280valid
6.0ms35×body640valid
6.0ms121×body80valid
3.0ms23×body320valid
1.0ms10×body160valid

simplify22.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: 32.0b

localize7.0ms

Local error

Found 3 expressions with local error:

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

rewrite153.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:
11.0ms
(/ (+ x 1.0) (- x 1.0))
5.0ms
(/ x (+ x 1.0))
80.0ms
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

series205.0ms

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

simplify206.0ms

Algorithm
egg-herbie
Counts
605 → 605
Iterations

Useful iterations: 2 (76.0ms)

IterNodesCost
0120818366
1368713388
2500113292

prune723.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.2b

localize14.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ (- 1.0) (pow x 2))
0.2b
(fma 3.0 (/ 1 x) (* 3.0 (/ 1 (pow x 3))))
0.6b
(/ 1 (pow x 3))
7.4b
(- (/ (- 1.0) (pow x 2)) (fma 3.0 (/ 1 x) (* 3.0 (/ 1 (pow x 3)))))

rewrite128.0ms

Algorithm
rewrite-expression-head
Rules
440×times-frac
354×add-sqr-sqrt
344×*-un-lft-identity
342×add-cube-cbrt
252×prod-diff
166×unpow-prod-down
123×distribute-lft-neg-in distribute-rgt-neg-in
84×fma-neg
56×sqr-pow
52×unpow2
41×neg-mul-1
20×associate-/r*
18×add-exp-log
13×associate-/l*
12×cube-prod
div-exp
add-cbrt-cube
div-inv add-log-exp
difference-of-squares
pow1 expm1-log1p-u cube-mult pow-to-exp unpow3 pow-exp log1p-expm1-u
rec-exp 1-exp
cbrt-undiv neg-sub0 frac-2neg div-sub clear-num fma-udef
associate--l- sub-neg flip3-- pow-flip diff-log distribute-frac-neg flip-- associate--r+ distribute-lft-out-- inv-pow
Counts
4 → 559
Calls
4 calls:
6.0ms
(/ (- 1.0) (pow x 2))
0.0ms
(fma 3.0 (/ 1 x) (* 3.0 (/ 1 (pow x 3))))
5.0ms
(/ 1 (pow x 3))
78.0ms
(- (/ (- 1.0) (pow x 2)) (fma 3.0 (/ 1 x) (* 3.0 (/ 1 (pow x 3)))))

series178.0ms

Counts
4 → 12
Calls
4 calls:
25.0ms
(/ (- 1.0) (pow x 2))
81.0ms
(fma 3.0 (/ 1 x) (* 3.0 (/ 1 (pow x 3))))
36.0ms
(/ 1 (pow x 3))
36.0ms
(- (/ (- 1.0) (pow x 2)) (fma 3.0 (/ 1 x) (* 3.0 (/ 1 (pow x 3)))))

simplify179.0ms

Algorithm
egg-herbie
Counts
571 → 571
Iterations

Useful iterations: 2 (78.0ms)

IterNodesCost
0115912779
141697106
250017094

prune764.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0b

localize13.0ms

Local error

Found 4 expressions with local error:

0.1b
(* 3.0 (/ 1 (pow x 3)))
0.2b
(/ (- 1.0) (pow x 2))
0.6b
(/ 1 (pow x 3))
7.4b
(- (/ (- 1.0) (pow x 2)) (+ (/ 3.0 x) (* 3.0 (/ 1 (pow x 3)))))

rewrite184.0ms

Algorithm
rewrite-expression-head
Rules
564×times-frac
442×add-sqr-sqrt
416×*-un-lft-identity
410×add-cube-cbrt
336×prod-diff
207×unpow-prod-down
147×distribute-lft-neg-in distribute-rgt-neg-in
92×div-inv
84×fma-neg distribute-lft-out
71×sqr-pow
62×unpow2
49×neg-mul-1
40×associate-*r*
38×add-exp-log
23×cube-prod
20×associate-/r*
15×div-exp
13×add-cbrt-cube associate-/l*
10×prod-exp
add-log-exp unswap-sqr
cube-mult pow-to-exp unpow3 pow-exp
pow1 rec-exp 1-exp
difference-of-squares
expm1-log1p-u frac-sub log1p-expm1-u
cbrt-undiv associate-*l*
neg-sub0 frac-2neg diff-log div-sub associate-*r/ frac-add clear-num un-div-inv cbrt-unprod
associate--l- sub-neg flip3-- pow-flip flip3-+ distribute-frac-neg pow-prod-down sum-log *-commutative flip-- flip-+ associate--r+ distribute-lft-out-- inv-pow
Counts
4 → 715
Calls
4 calls:
18.0ms
(* 3.0 (/ 1 (pow x 3)))
8.0ms
(/ (- 1.0) (pow x 2))
5.0ms
(/ 1 (pow x 3))
102.0ms
(- (/ (- 1.0) (pow x 2)) (+ (/ 3.0 x) (* 3.0 (/ 1 (pow x 3)))))

series132.0ms

Counts
4 → 12
Calls
4 calls:
36.0ms
(* 3.0 (/ 1 (pow x 3)))
30.0ms
(/ (- 1.0) (pow x 2))
31.0ms
(/ 1 (pow x 3))
34.0ms
(- (/ (- 1.0) (pow x 2)) (+ (/ 3.0 x) (* 3.0 (/ 1 (pow x 3)))))

simplify152.0ms

Algorithm
egg-herbie
Counts
727 → 727
Iterations

Useful iterations: 1 (31.0ms)

IterNodesCost
0165114818
150019063

prune861.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0b

localize17.0ms

Local error

Found 4 expressions with local error:

16.8b
(/ (+ x 1.0) (- (* x x) (* 1.0 1.0)))
16.8b
(/ (+ x 1.0) (- (* x x) (* 1.0 1.0)))
16.8b
(/ x (- (* x x) (* 1.0 1.0)))
32.7b
(fma (/ x (- (* x x) (* 1.0 1.0))) (- x 1.0) (- (* (+ x 1.0) (/ (+ x 1.0) (- (* x x) (* 1.0 1.0))))))

rewrite34.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:
11.0ms
(/ (+ x 1.0) (- (* x x) (* 1.0 1.0)))
13.0ms
(/ (+ x 1.0) (- (* x x) (* 1.0 1.0)))
6.0ms
(/ x (- (* 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))))))

series336.0ms

Counts
4 → 12
Calls
4 calls:
42.0ms
(/ (+ x 1.0) (- (* x x) (* 1.0 1.0)))
36.0ms
(/ (+ x 1.0) (- (* x x) (* 1.0 1.0)))
71.0ms
(/ x (- (* x x) (* 1.0 1.0)))
186.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

prune394.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0b

regimes29.0ms

Accuracy

100% (0.0b remaining)

Error of 0.1b against oracle of 0.0b and baseline of 31.9b

bsearch140.0ms

Steps
ItersRangePoint
11
21.02059315853866
1.1431332651762801e+24
11856.138291033363
11
-7.192008941699975e+16
-0.00038629318802677867
-11077.767521343081

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05636
16036
26036

end0.0ms

sample1.1s

Algorithm
intervals
Results
404.0ms1721×body1280valid
231.0ms1233×body640valid
204.0ms4093×body80valid
90.0ms641×body320valid
29.0ms312×body160valid