Details

Time bar (total: 3.4s)

sample13.0ms

Algorithm
intervals
Results
5.0ms256×body80valid

simplify19.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0174
1284
2434
3564
4724
51334
62144
72654
82974
92974

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.0b

localize10.0ms

Local error

Found 1 expressions with local error:

0.0b
(/ (- x y) (- 2.0 (+ x y)))

rewrite22.0ms

Algorithm
rewrite-expression-head
Rules
58×*-un-lft-identity
40×add-sqr-sqrt
30×times-frac
19×distribute-lft-out--
14×add-cube-cbrt
13×difference-of-squares
associate-/r* distribute-lft-out
associate-/l*
add-exp-log add-cbrt-cube
flip3-- associate-/r/ flip-- associate-/l/
pow1 cbrt-undiv frac-2neg div-sub div-exp clear-num div-inv add-log-exp
Counts
1 → 58
Calls
1 calls:
17.0ms
(/ (- x y) (- 2.0 (+ x y)))

series79.0ms

Counts
1 → 3
Calls
1 calls:
79.0ms
(/ (- x y) (- 2.0 (+ x y)))

simplify119.0ms

Algorithm
egg-herbie
Counts
61 → 61
Iterations

Useful iterations: 2 (28.0ms)

IterNodesCost
0275489
1853468
24118466
35002466

prune113.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0b

localize7.0ms

Local error

Found 3 expressions with local error:

0.0b
(/ x (- 2.0 (+ x y)))
0.0b
(/ y (- 2.0 (+ x y)))
0.0b
(- (/ x (- 2.0 (+ x y))) (/ y (- 2.0 (+ x y))))

rewrite55.0ms

Algorithm
rewrite-expression-head
Rules
127×*-un-lft-identity
64×times-frac
59×add-sqr-sqrt
41×distribute-lft-out--
27×add-cube-cbrt
14×distribute-lft-out difference-of-squares
12×associate-/r*
associate-/r/
add-exp-log add-cbrt-cube
associate-/l*
flip3-- flip-- add-log-exp
div-inv
pow1 distribute-rgt-out--
cbrt-undiv frac-2neg div-exp clear-num
sub-neg diff-log frac-sub sub-div
Counts
3 → 116
Calls
3 calls:
7.0ms
(/ x (- 2.0 (+ x y)))
7.0ms
(/ y (- 2.0 (+ x y)))
33.0ms
(- (/ x (- 2.0 (+ x y))) (/ y (- 2.0 (+ x y))))

series149.0ms

Counts
3 → 9
Calls
3 calls:
44.0ms
(/ x (- 2.0 (+ x y)))
45.0ms
(/ y (- 2.0 (+ x y)))
60.0ms
(- (/ x (- 2.0 (+ x y))) (/ y (- 2.0 (+ x y))))

simplify45.0ms

Algorithm
egg-herbie
Counts
125 → 125
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0377899
11162864
25001858

prune233.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0b

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (/ x (- 2.0 (+ x y))) (/ y (- 2.0 (+ x y))))
0.1b
(* (/ x (- 2.0 (+ x y))) (/ x (- 2.0 (+ x y))))
0.1b
(* (/ y (- 2.0 (+ x y))) (/ y (- 2.0 (+ x y))))
3.8b
(/ (- (* (/ x (- 2.0 (+ x y))) (/ x (- 2.0 (+ x y)))) (* (/ y (- 2.0 (+ x y))) (/ y (- 2.0 (+ x y))))) (+ (/ x (- 2.0 (+ x y))) (/ y (- 2.0 (+ x y)))))

rewrite183.0ms

Algorithm
rewrite-expression-head
Rules
769×*-un-lft-identity
444×times-frac
241×add-sqr-sqrt
168×distribute-lft-out--
162×distribute-lft-out
145×add-cube-cbrt
84×swap-sqr
56×difference-of-squares
48×associate-*r* associate-*l*
43×associate-/r/
30×add-exp-log add-cbrt-cube
21×flip3-- flip-- div-inv
19×associate-/r*
18×pow1 distribute-rgt-out
16×associate-/l/
12×associate-*r/ associate-*l/
10×frac-times
cbrt-undiv div-exp frac-sub
prod-exp cbrt-unprod unswap-sqr
add-log-exp
sub-div
associate-/l*
pow2 flip3-+ pow-plus pow-prod-down frac-add pow-sqr *-commutative pow-prod-up flip-+
+-commutative frac-2neg div-sub clear-num sum-log
Counts
4 → 395
Calls
4 calls:
33.0ms
(+ (/ x (- 2.0 (+ x y))) (/ y (- 2.0 (+ x y))))
30.0ms
(* (/ x (- 2.0 (+ x y))) (/ x (- 2.0 (+ x y))))
26.0ms
(* (/ y (- 2.0 (+ x y))) (/ y (- 2.0 (+ x y))))
58.0ms
(/ (- (* (/ x (- 2.0 (+ x y))) (/ x (- 2.0 (+ x y)))) (* (/ y (- 2.0 (+ x y))) (/ y (- 2.0 (+ x y))))) (+ (/ x (- 2.0 (+ x y))) (/ y (- 2.0 (+ x y)))))

series322.0ms

Counts
4 → 12
Calls
4 calls:
51.0ms
(+ (/ x (- 2.0 (+ x y))) (/ y (- 2.0 (+ x y))))
61.0ms
(* (/ x (- 2.0 (+ x y))) (/ x (- 2.0 (+ x y))))
59.0ms
(* (/ y (- 2.0 (+ x y))) (/ y (- 2.0 (+ x y))))
152.0ms
(/ (- (* (/ x (- 2.0 (+ x y))) (/ x (- 2.0 (+ x y)))) (* (/ y (- 2.0 (+ x y))) (/ y (- 2.0 (+ x y))))) (+ (/ x (- 2.0 (+ x y))) (/ y (- 2.0 (+ x y)))))

simplify99.0ms

Algorithm
egg-herbie
Counts
407 → 407
Iterations

Useful iterations: 1 (35.0ms)

IterNodesCost
013686899
150016649

prune719.0ms

Pruning

2 alts after pruning (1 fresh and 1 done)

Merged error: 0b

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(- (* 2.0 2.0) (* (+ x y) (+ x y)))
0.0b
(- (* (/ x (- (* 2.0 2.0) (* (+ x y) (+ x y)))) (+ 2.0 (+ x y))) (/ y (- 2.0 (+ x y))))
7.2b
(* (/ x (- (* 2.0 2.0) (* (+ x y) (+ x y)))) (+ 2.0 (+ x y)))
16.2b
(/ x (- (* 2.0 2.0) (* (+ x y) (+ x y))))

rewrite48.0ms

Algorithm
rewrite-expression-head
Rules
27×add-sqr-sqrt *-un-lft-identity
25×times-frac
22×add-cube-cbrt
18×associate-*l*
11×add-exp-log add-cbrt-cube
add-log-exp difference-of-squares
pow1
associate-*r/ associate-*r* associate-/r/ frac-sub flip-- flip-+
frac-times flip3-- flip3-+ associate-/r*
distribute-rgt-in distribute-lft-in distribute-lft-out associate-/l*
cbrt-undiv sub-neg diff-log div-exp associate-*l/ prod-exp associate--l+ cbrt-unprod div-inv associate--r+ unswap-sqr
distribute-rgt-out-- frac-2neg pow-prod-down clear-num *-commutative sub-div
Counts
4 → 114
Calls
4 calls:
4.0ms
(- (* 2.0 2.0) (* (+ x y) (+ x y)))
18.0ms
(- (* (/ x (- (* 2.0 2.0) (* (+ x y) (+ x y)))) (+ 2.0 (+ x y))) (/ y (- 2.0 (+ x y))))
17.0ms
(* (/ x (- (* 2.0 2.0) (* (+ x y) (+ x y)))) (+ 2.0 (+ x y)))
5.0ms
(/ x (- (* 2.0 2.0) (* (+ x y) (+ x y))))

series349.0ms

Counts
4 → 12
Calls
4 calls:
32.0ms
(- (* 2.0 2.0) (* (+ x y) (+ x y)))
155.0ms
(- (* (/ x (- (* 2.0 2.0) (* (+ x y) (+ x y)))) (+ 2.0 (+ x y))) (/ y (- 2.0 (+ x y))))
85.0ms
(* (/ x (- (* 2.0 2.0) (* (+ x y) (+ x y)))) (+ 2.0 (+ x y)))
76.0ms
(/ x (- (* 2.0 2.0) (* (+ x y) (+ x y))))

simplify89.0ms

Algorithm
egg-herbie
Counts
126 → 126
Iterations

Useful iterations: 2 (75.0ms)

IterNodesCost
07001485
132351349
250021347

prune317.0ms

Pruning

2 alts after pruning (0 fresh and 2 done)

Merged error: 0b

regimes41.0ms

Accuracy

99.8% (0.0b remaining)

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

bsearch53.0ms

Steps
ItersRangePoint
8
3.627277507727334e-106
3.719001317748321e-103
8.480069669833023e-105
4
-2.076284895701021
-1.0806682141483241
-1.8286949592281574

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03236
13236

end0.0ms

sample303.0ms

Algorithm
intervals
Results
174.0ms8000×body80valid