Details

Time bar (total: 2.6s)

sample12.0ms

Algorithm
intervals
Results
4.0ms249×body80valid
0.0msbody1280valid
0.0msbody640valid
0.0msbody160valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0104
1114
2114

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.0b

localize5.0ms

Local error

Found 1 expressions with local error:

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

rewrite6.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity
fma-def add-log-exp
add-sqr-sqrt add-cube-cbrt
pow1 add-exp-log +-commutative expm1-log1p-u flip3-+ sum-log add-cbrt-cube flip-+ log1p-expm1-u distribute-lft-out
Counts
1 → 17
Calls
1 calls:
6.0ms
(+ x (/ (fabs (- y x)) 2.0))

series16.0ms

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

simplify44.0ms

Algorithm
egg-herbie
Counts
20 → 20
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
088110
122697
254097
3152297
4500197

prune43.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0.0b

localize7.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ x (/ (fabs (- y x)) 2.0))
0.0b
(sqrt (+ x (/ (fabs (- y x)) 2.0)))
0.0b
(sqrt (+ x (/ (fabs (- y x)) 2.0)))
0.4b
(* (sqrt (+ x (/ (fabs (- y x)) 2.0))) (sqrt (+ x (/ (fabs (- y x)) 2.0))))

rewrite78.0ms

Algorithm
rewrite-expression-head
Rules
39×add-sqr-sqrt
35×*-un-lft-identity
34×sqrt-prod
21×pow1
16×sqrt-div
15×add-cube-cbrt
11×swap-sqr
10×sqrt-pow1 pow1/2
flip3-+ flip-+ distribute-lft-out
associate-*r* associate-*l*
add-exp-log add-cbrt-cube add-log-exp
pow-prod-up
expm1-log1p-u frac-times hypot-def log1p-expm1-u unswap-sqr
fma-def pow-prod-down pow-sqr
rem-sqrt-square times-frac associate-*r/ associate-*l/
+-commutative pow2 pow-plus sqrt-unprod prod-exp sum-log rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 121
Calls
4 calls:
6.0ms
(+ x (/ (fabs (- y x)) 2.0))
11.0ms
(sqrt (+ x (/ (fabs (- y x)) 2.0)))
11.0ms
(sqrt (+ x (/ (fabs (- y x)) 2.0)))
47.0ms
(* (sqrt (+ x (/ (fabs (- y x)) 2.0))) (sqrt (+ x (/ (fabs (- y x)) 2.0))))

series124.0ms

Counts
4 → 12
Calls
4 calls:
15.0ms
(+ x (/ (fabs (- y x)) 2.0))
46.0ms
(sqrt (+ x (/ (fabs (- y x)) 2.0)))
43.0ms
(sqrt (+ x (/ (fabs (- y x)) 2.0)))
19.0ms
(* (sqrt (+ x (/ (fabs (- y x)) 2.0))) (sqrt (+ x (/ (fabs (- y x)) 2.0))))

simplify44.0ms

Algorithm
egg-herbie
Counts
133 → 133
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
02871107
111251001
25002967

prune255.0ms

Pruning

5 alts after pruning (3 fresh and 2 done)

Merged error: 0b

localize10.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (sqrt (+ x (/ (fabs (- y x)) 2.0))))
0.1b
(sqrt (sqrt (+ x (/ (fabs (- y x)) 2.0))))
0.4b
(* (* (sqrt (sqrt (+ x (/ (fabs (- y x)) 2.0)))) (sqrt (sqrt (+ x (/ (fabs (- y x)) 2.0))))) (sqrt (+ x (/ (fabs (- y x)) 2.0))))
0.4b
(* (sqrt (sqrt (+ x (/ (fabs (- y x)) 2.0)))) (sqrt (sqrt (+ x (/ (fabs (- y x)) 2.0)))))

rewrite182.0ms

Algorithm
rewrite-expression-head
Rules
122×sqrt-div
112×sqrt-prod
97×sqrt-pow1
75×pow1
60×add-sqr-sqrt
53×pow1/2
43×pow-prod-up
42×*-un-lft-identity
35×flip3-+ flip-+
32×frac-times
22×add-cube-cbrt
20×swap-sqr
17×associate-*r*
16×associate-*l/
13×pow-sqr
12×pow-prod-down
11×add-exp-log associate-*l* add-cbrt-cube unswap-sqr
10×associate-*r/
distribute-lft-out
pow-plus
expm1-log1p-u rem-sqrt-square prod-exp cbrt-unprod log1p-expm1-u add-log-exp
sqrt-unprod
*-commutative
pow2 rem-square-sqrt
Counts
4 → 219
Calls
4 calls:
10.0ms
(sqrt (sqrt (+ x (/ (fabs (- y x)) 2.0))))
11.0ms
(sqrt (sqrt (+ x (/ (fabs (- y x)) 2.0))))
94.0ms
(* (* (sqrt (sqrt (+ x (/ (fabs (- y x)) 2.0)))) (sqrt (sqrt (+ x (/ (fabs (- y x)) 2.0))))) (sqrt (+ x (/ (fabs (- y x)) 2.0))))
53.0ms
(* (sqrt (sqrt (+ x (/ (fabs (- y x)) 2.0)))) (sqrt (sqrt (+ x (/ (fabs (- y x)) 2.0)))))

series164.0ms

Counts
4 → 12
Calls
4 calls:
51.0ms
(sqrt (sqrt (+ x (/ (fabs (- y x)) 2.0))))
52.0ms
(sqrt (sqrt (+ x (/ (fabs (- y x)) 2.0))))
16.0ms
(* (* (sqrt (sqrt (+ x (/ (fabs (- y x)) 2.0)))) (sqrt (sqrt (+ x (/ (fabs (- y x)) 2.0))))) (sqrt (+ x (/ (fabs (- y x)) 2.0))))
45.0ms
(* (sqrt (sqrt (+ x (/ (fabs (- y x)) 2.0)))) (sqrt (sqrt (+ x (/ (fabs (- y x)) 2.0)))))

simplify89.0ms

Algorithm
egg-herbie
Counts
231 → 231
Iterations

Useful iterations: 2 (63.0ms)

IterNodesCost
06782916
126462427
250012385

prune422.0ms

Pruning

5 alts after pruning (2 fresh and 3 done)

Merged error: 0b

localize12.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (fabs (cbrt (+ x (/ (fabs (- y x)) 2.0)))) (sqrt (cbrt (+ x (/ (fabs (- y x)) 2.0)))))
0.4b
(* (* (fabs (cbrt (+ x (/ (fabs (- y x)) 2.0)))) (sqrt (cbrt (+ x (/ (fabs (- y x)) 2.0))))) (sqrt (+ x (/ (fabs (- y x)) 2.0))))
0.5b
(cbrt (+ x (/ (fabs (- y x)) 2.0)))
0.5b
(cbrt (+ x (/ (fabs (- y x)) 2.0)))

rewrite90.0ms

Algorithm
rewrite-expression-head
Rules
20×*-un-lft-identity
18×add-sqr-sqrt
17×associate-*r*
14×sqrt-div
13×cbrt-prod sqrt-prod
12×add-cube-cbrt cbrt-div
11×pow1 add-exp-log add-cbrt-cube
10×associate-*r/
flip3-+ flip-+
expm1-log1p-u frac-times associate-*l* pow-prod-down prod-exp cbrt-unprod log1p-expm1-u distribute-lft-out add-log-exp
unswap-sqr
pow1/3 associate-*l/ *-commutative
Counts
4 → 95
Calls
4 calls:
25.0ms
(* (fabs (cbrt (+ x (/ (fabs (- y x)) 2.0)))) (sqrt (cbrt (+ x (/ (fabs (- y x)) 2.0)))))
49.0ms
(* (* (fabs (cbrt (+ x (/ (fabs (- y x)) 2.0)))) (sqrt (cbrt (+ x (/ (fabs (- y x)) 2.0))))) (sqrt (+ x (/ (fabs (- y x)) 2.0))))
5.0ms
(cbrt (+ x (/ (fabs (- y x)) 2.0)))
5.0ms
(cbrt (+ x (/ (fabs (- y x)) 2.0)))

series253.0ms

Counts
4 → 12
Calls
4 calls:
86.0ms
(* (fabs (cbrt (+ x (/ (fabs (- y x)) 2.0)))) (sqrt (cbrt (+ x (/ (fabs (- y x)) 2.0)))))
67.0ms
(* (* (fabs (cbrt (+ x (/ (fabs (- y x)) 2.0)))) (sqrt (cbrt (+ x (/ (fabs (- y x)) 2.0))))) (sqrt (+ x (/ (fabs (- y x)) 2.0))))
51.0ms
(cbrt (+ x (/ (fabs (- y x)) 2.0)))
49.0ms
(cbrt (+ x (/ (fabs (- y x)) 2.0)))

simplify68.0ms

Algorithm
egg-herbie
Counts
107 → 107
Iterations

Useful iterations: 2 (53.0ms)

IterNodesCost
06802059
126341912
250021876

prune357.0ms

Pruning

5 alts after pruning (1 fresh and 4 done)

Merged error: 0b

regimes66.0ms

Accuracy

0% (0.0b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
084
184

end0.0ms

sample289.0ms

Algorithm
intervals
Results
146.0ms7713×body80valid
8.0ms94×body1280valid
5.0ms49×body320valid
5.0ms74×body640valid
5.0ms46×body2560valid
1.0ms27×body160valid