Details

Time bar (total: 4.5s)

sample21.0ms

Algorithm
intervals
Results
6.0ms48×body1280valid
4.0ms45×body640valid
3.0ms133×body80valid
1.0ms20×body320valid
0.0ms10×body160valid

simplify21.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: 28.9b

localize6.0ms

Local error

Found 3 expressions with local error:

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

rewrite157.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))
6.0ms
(/ x (+ x 1.0))
82.0ms
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

series211.0ms

Counts
3 → 9
Calls
3 calls:
40.0ms
(/ (+ x 1.0) (- x 1.0))
34.0ms
(/ x (+ x 1.0))
137.0ms
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

simplify196.0ms

Algorithm
egg-herbie
Counts
605 → 605
Iterations

Useful iterations: 2 (74.0ms)

IterNodesCost
0120818366
1368713388
2500113292

prune751.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 0.2b

localize8.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ 1 (- x 1.0))
0.0b
(/ x (+ x 1.0))
0.1b
(* (+ x 1.0) (/ 1 (- x 1.0)))
7.3b
(- (/ x (+ x 1.0)) (* (+ x 1.0) (/ 1 (- x 1.0))))

rewrite86.0ms

Algorithm
rewrite-expression-head
Rules
86×*-un-lft-identity
70×add-sqr-sqrt
68×times-frac
49×add-cube-cbrt
21×associate-*r*
19×add-exp-log
18×fma-neg prod-diff
13×add-cbrt-cube
11×distribute-lft-out
10×associate-/r/
associate-/r*
pow1 flip3-+ flip-+ distribute-lft-out-- difference-of-squares
frac-sub associate-/l* add-log-exp
div-exp div-inv
expm1-log1p-u frac-times associate-*l* associate-*l/ prod-exp log1p-expm1-u
cbrt-undiv flip3-- flip-- unswap-sqr
rec-exp frac-2neg 1-exp associate-*r/ clear-num un-div-inv cbrt-unprod
sub-neg pow-flip diff-log pow-prod-down *-commutative inv-pow
Counts
4 → 185
Calls
4 calls:
6.0ms
(/ 1 (- x 1.0))
5.0ms
(/ x (+ x 1.0))
25.0ms
(* (+ x 1.0) (/ 1 (- x 1.0)))
40.0ms
(- (/ x (+ x 1.0)) (* (+ x 1.0) (/ 1 (- x 1.0))))

series236.0ms

Counts
4 → 12
Calls
4 calls:
26.0ms
(/ 1 (- x 1.0))
34.0ms
(/ x (+ x 1.0))
43.0ms
(* (+ x 1.0) (/ 1 (- x 1.0)))
133.0ms
(- (/ x (+ x 1.0)) (* (+ x 1.0) (/ 1 (- x 1.0))))

simplify89.0ms

Algorithm
egg-herbie
Counts
197 → 197
Iterations

Useful iterations: 2 (69.0ms)

IterNodesCost
06671458
133021271
250011212

prune333.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.2b

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ (fma (- x 1.0) (* x (- x 1.0)) (* (- (+ x 1.0)) (- (* x x) (* 1.0 1.0)))) (* (+ x 1.0) (* (- x 1.0) (- x 1.0))))
0.1b
(* (- (+ x 1.0)) (- (* x x) (* 1.0 1.0)))
0.1b
(* (+ x 1.0) (* (- x 1.0) (- x 1.0)))
29.8b
(fma (- x 1.0) (* x (- x 1.0)) (* (- (+ x 1.0)) (- (* x x) (* 1.0 1.0))))

rewrite103.0ms

Algorithm
rewrite-expression-head
Rules
60×frac-times
47×distribute-rgt-in distribute-lft-in
41×*-un-lft-identity
39×flip3-- flip--
38×add-sqr-sqrt prod-diff
35×add-cube-cbrt
30×associate-*r/
26×associate-/r/
21×flip3-+ flip-+
20×add-exp-log add-cbrt-cube
18×associate-*l/
16×associate-*l*
11×pow1
prod-exp cbrt-unprod
sub-neg distribute-neg-frac
associate-*r*
distribute-lft-neg-in expm1-log1p-u distribute-rgt-neg-in pow-prod-down log1p-expm1-u add-log-exp
cbrt-undiv times-frac div-exp distribute-lft-out associate-/l*
*-commutative unswap-sqr
distribute-lft-neg-out neg-mul-1 frac-2neg clear-num associate-/r* fma-udef div-inv difference-of-squares
Counts
4 → 198
Calls
4 calls:
24.0ms
(/ (fma (- x 1.0) (* x (- x 1.0)) (* (- (+ x 1.0)) (- (* x x) (* 1.0 1.0)))) (* (+ x 1.0) (* (- x 1.0) (- x 1.0))))
31.0ms
(* (- (+ x 1.0)) (- (* x x) (* 1.0 1.0)))
37.0ms
(* (+ x 1.0) (* (- x 1.0) (- x 1.0)))
0.0ms
(fma (- x 1.0) (* x (- x 1.0)) (* (- (+ x 1.0)) (- (* x x) (* 1.0 1.0))))

series380.0ms

Counts
4 → 12
Calls
4 calls:
194.0ms
(/ (fma (- x 1.0) (* x (- x 1.0)) (* (- (+ x 1.0)) (- (* x x) (* 1.0 1.0)))) (* (+ x 1.0) (* (- x 1.0) (- x 1.0))))
39.0ms
(* (- (+ x 1.0)) (- (* x x) (* 1.0 1.0)))
45.0ms
(* (+ x 1.0) (* (- x 1.0) (- x 1.0)))
102.0ms
(fma (- x 1.0) (* x (- x 1.0)) (* (- (+ x 1.0)) (- (* x x) (* 1.0 1.0))))

simplify51.0ms

Algorithm
egg-herbie
Counts
210 → 210
Iterations

Useful iterations: 1 (25.0ms)

IterNodesCost
011573021
150012568

prune446.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.1b

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(* (- x 1.0) (- x 1.0))
0.1b
(* (+ x 1.0) (* (- x 1.0) (- x 1.0)))
0.1b
(* 3.0 (pow x 2))
19.2b
(/ (fma x 2.0 (- 1.0 (* 3.0 (pow x 2)))) (* (+ x 1.0) (* (- x 1.0) (- x 1.0))))

rewrite106.0ms

Algorithm
rewrite-expression-head
Rules
67×add-sqr-sqrt
66×*-un-lft-identity
60×frac-times
55×distribute-rgt-in distribute-lft-in
54×prod-diff
50×add-cube-cbrt
42×flip3-- flip--
30×associate-*r/
26×associate-/r/
25×add-exp-log
22×add-cbrt-cube
18×flip3-+ associate-*l/ flip-+
16×pow1
14×associate-*r*
12×associate-*l*
10×prod-exp
cbrt-unprod
swap-sqr
sub-neg distribute-lft-out-- unswap-sqr
expm1-log1p-u unpow-prod-down pow-prod-down log1p-expm1-u add-log-exp difference-of-squares
cbrt-undiv times-frac div-exp *-commutative associate-/l*
unpow2 sqr-pow
pow2 pow-to-exp frac-2neg pow-plus pow-exp clear-num associate-/r* pow-sqr pow-prod-up div-inv distribute-lft-out
Counts
4 → 237
Calls
4 calls:
20.0ms
(* (- x 1.0) (- x 1.0))
36.0ms
(* (+ x 1.0) (* (- x 1.0) (- x 1.0)))
6.0ms
(* 3.0 (pow x 2))
28.0ms
(/ (fma x 2.0 (- 1.0 (* 3.0 (pow x 2)))) (* (+ x 1.0) (* (- x 1.0) (- x 1.0))))

series180.0ms

Counts
4 → 12
Calls
4 calls:
25.0ms
(* (- x 1.0) (- x 1.0))
38.0ms
(* (+ x 1.0) (* (- x 1.0) (- x 1.0)))
24.0ms
(* 3.0 (pow x 2))
93.0ms
(/ (fma x 2.0 (- 1.0 (* 3.0 (pow x 2)))) (* (+ x 1.0) (* (- x 1.0) (- x 1.0))))

simplify49.0ms

Algorithm
egg-herbie
Counts
249 → 249
Iterations

Useful iterations: 1 (25.0ms)

IterNodesCost
010522734
150022159

prune440.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0b

regimes32.0ms

Accuracy

99.9% (0.0b remaining)

Error of 0.0b against oracle of 0.0b and baseline of 16.7b

bsearch92.0ms

Steps
ItersRangePoint
9
1.2499789889099044
556939279.5099251
125882.07557923895
9
-15640006985.087824
-4.508778152722845
-41855320.47834496

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04519
14719
24719

end0.0ms

sample521.0ms

Algorithm
intervals
Results
178.0ms1719×body1280valid
105.0ms1232×body640valid
89.0ms4121×body80valid
41.0ms608×body320valid
19.0ms320×body160valid