Details

Time bar (total: 7.9s)

sample29.0ms

Algorithm
intervals
Results
6.0ms248×body80nan
5.0ms57×body640valid
4.0ms149×body80valid
4.0ms29×body1280valid
1.0ms18×body320valid
0.0msbody160valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0116
1146
2146

prune2.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 17.8b

Counts
2 → 1

localize7.0ms

Local error

Found 3 expressions with local error:

0.1b
(/ 1.0 (sqrt (+ x 1.0)))
0.2b
(/ 1.0 (sqrt x))
1.2b
(- (/ 1.0 (sqrt x)) (/ 1.0 (sqrt (+ x 1.0))))

rewrite49.0ms

Algorithm
rewrite-expression-head
Rules
71×*-un-lft-identity
70×add-sqr-sqrt
69×times-frac
46×sqrt-prod
40×add-cube-cbrt
13×associate-/r*
11×distribute-lft-out--
difference-of-squares
add-exp-log add-cbrt-cube distribute-lft-out
associate-/l*
add-log-exp
div-inv
pow1
cbrt-undiv frac-2neg sqrt-div div-exp clear-num associate-/r/
sub-neg flip3-- flip3-+ diff-log frac-sub flip-- flip-+
Counts
3 → 117
Calls
3 calls:
6.0ms
(/ 1.0 (sqrt (+ x 1.0)))
4.0ms
(/ 1.0 (sqrt x))
35.0ms
(- (/ 1.0 (sqrt x)) (/ 1.0 (sqrt (+ x 1.0))))

series258.0ms

Counts
3 → 9
Calls
3 calls:
79.0ms
(/ 1.0 (sqrt (+ x 1.0)))
45.0ms
(/ 1.0 (sqrt x))
133.0ms
(- (/ 1.0 (sqrt x)) (/ 1.0 (sqrt (+ x 1.0))))

simplify46.0ms

Algorithm
egg-herbie
Counts
126 → 126
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
04101006
11310954
25001912

prune267.0ms

Filtered
126 candidates to 84 candidates (66.7%)
Pruning

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New11511126
Fresh000
Picked101
Done000
Total11611127

Merged error: 17.4b

Counts
127 → 11

localize13.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ 1.0 (sqrt x))
0.2b
(/ 1.0 (sqrt x))
0.3b
(* (+ (sqrt (/ 1.0 (sqrt x))) (/ (sqrt 1.0) (sqrt (sqrt (+ x 1.0))))) (- (sqrt (/ 1.0 (sqrt x))) (/ (sqrt 1.0) (sqrt (sqrt (+ x 1.0))))))
7.7b
(- (sqrt (/ 1.0 (sqrt x))) (/ (sqrt 1.0) (sqrt (sqrt (+ x 1.0)))))

rewrite233.0ms

Algorithm
rewrite-expression-head
Rules
226×add-sqr-sqrt
155×sqrt-prod
112×times-frac
56×difference-of-squares
42×*-un-lft-identity
36×add-cube-cbrt
33×associate-*r*
12×associate-/r*
10×add-exp-log add-cbrt-cube
frac-times sqrt-div
div-inv
pow1 associate-/l* add-log-exp
flip3-- associate-*l* frac-sub flip--
flip3-+ frac-add flip-+ distribute-lft-out--
sub-neg associate-*r/ associate-*l/
cbrt-undiv distribute-rgt-in frac-2neg distribute-lft-in div-exp clear-num distribute-lft-out
diff-log pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
Counts
4 → 190
Calls
4 calls:
4.0ms
(/ 1.0 (sqrt x))
4.0ms
(/ 1.0 (sqrt x))
142.0ms
(* (+ (sqrt (/ 1.0 (sqrt x))) (/ (sqrt 1.0) (sqrt (sqrt (+ x 1.0))))) (- (sqrt (/ 1.0 (sqrt x))) (/ (sqrt 1.0) (sqrt (sqrt (+ x 1.0))))))
72.0ms
(- (sqrt (/ 1.0 (sqrt x))) (/ (sqrt 1.0) (sqrt (sqrt (+ x 1.0)))))

series1.2s

Counts
4 → 12
Calls
4 calls:
37.0ms
(/ 1.0 (sqrt x))
43.0ms
(/ 1.0 (sqrt x))
601.0ms
(* (+ (sqrt (/ 1.0 (sqrt x))) (/ (sqrt 1.0) (sqrt (sqrt (+ x 1.0))))) (- (sqrt (/ 1.0 (sqrt x))) (/ (sqrt 1.0) (sqrt (sqrt (+ x 1.0))))))
498.0ms
(- (sqrt (/ 1.0 (sqrt x))) (/ (sqrt 1.0) (sqrt (sqrt (+ x 1.0)))))

simplify121.0ms

Algorithm
egg-herbie
Counts
202 → 202
Iterations

Useful iterations: 2 (87.0ms)

IterNodesCost
09333488
142483292
250013280

prune531.0ms

Filtered
202 candidates to 125 candidates (61.9%)
Pruning

13 alts after pruning (13 fresh and 0 done)

PrunedKeptTotal
New1957202
Fresh4610
Picked101
Done000
Total20013213

Merged error: 11.5b

Counts
213 → 13

localize17.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ 1.0 (sqrt x))
0.2b
(* (sqrt (sqrt x)) (sqrt (sqrt (+ x 1.0))))
0.3b
(* (+ (sqrt (/ 1.0 (sqrt x))) (/ (sqrt 1.0) (sqrt (sqrt (+ x 1.0))))) (/ (* (sqrt 1.0) (- (sqrt (sqrt (+ x 1.0))) (sqrt (sqrt x)))) (* (sqrt (sqrt x)) (sqrt (sqrt (+ x 1.0))))))
1.2b
(- (sqrt (sqrt (+ x 1.0))) (sqrt (sqrt x)))

rewrite125.0ms

Algorithm
rewrite-expression-head
Rules
79×sqrt-prod
65×add-sqr-sqrt
40×*-un-lft-identity
27×add-cube-cbrt
26×add-exp-log add-cbrt-cube
19×times-frac
17×associate-*r*
14×associate-*l*
12×pow1
10×sqrt-div prod-exp cbrt-unprod unswap-sqr
difference-of-squares
sqrt-pow1
pow-prod-down associate-/r* add-log-exp
cbrt-undiv associate-*r/ div-exp
flip3-+ pow1/2 flip-+ div-inv distribute-lft-out distribute-lft-out--
frac-times associate-*l/ associate-/l*
frac-add associate-/r/ *-commutative
sub-neg flip3-- frac-2neg sqrt-unprod diff-log clear-num flip--
Counts
4 → 149
Calls
4 calls:
4.0ms
(/ 1.0 (sqrt x))
11.0ms
(* (sqrt (sqrt x)) (sqrt (sqrt (+ x 1.0))))
92.0ms
(* (+ (sqrt (/ 1.0 (sqrt x))) (/ (sqrt 1.0) (sqrt (sqrt (+ x 1.0))))) (/ (* (sqrt 1.0) (- (sqrt (sqrt (+ x 1.0))) (sqrt (sqrt x)))) (* (sqrt (sqrt x)) (sqrt (sqrt (+ x 1.0))))))
12.0ms
(- (sqrt (sqrt (+ x 1.0))) (sqrt (sqrt x)))

series1.3s

Counts
4 → 12
Calls
4 calls:
37.0ms
(/ 1.0 (sqrt x))
121.0ms
(* (sqrt (sqrt x)) (sqrt (sqrt (+ x 1.0))))
935.0ms
(* (+ (sqrt (/ 1.0 (sqrt x))) (/ (sqrt 1.0) (sqrt (sqrt (+ x 1.0))))) (/ (* (sqrt 1.0) (- (sqrt (sqrt (+ x 1.0))) (sqrt (sqrt x)))) (* (sqrt (sqrt x)) (sqrt (sqrt (+ x 1.0))))))
172.0ms
(- (sqrt (sqrt (+ x 1.0))) (sqrt (sqrt x)))

simplify61.0ms

Algorithm
egg-herbie
Counts
161 → 161
Iterations

Useful iterations: 1 (31.0ms)

IterNodesCost
015003014
150022652

prune589.0ms

Filtered
161 candidates to 115 candidates (71.4%)
Pruning

14 alts after pruning (14 fresh and 0 done)

PrunedKeptTotal
New1583161
Fresh11112
Picked101
Done000
Total16014174

Merged error: 11.5b

Counts
174 → 14

localize25.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (sqrt (sqrt x)) (sqrt (sqrt (+ x 1.0))))
0.3b
(* (+ (sqrt (/ 1.0 (sqrt x))) (/ (sqrt 1.0) (sqrt (sqrt (+ x 1.0))))) (/ (* (sqrt 1.0) (log (exp (- (sqrt (sqrt (+ x 1.0))) (sqrt (sqrt x)))))) (* (sqrt (sqrt x)) (sqrt (sqrt (+ x 1.0))))))
1.1b
(log (exp (- (sqrt (sqrt (+ x 1.0))) (sqrt (sqrt x)))))
1.2b
(- (sqrt (sqrt (+ x 1.0))) (sqrt (sqrt x)))

rewrite135.0ms

Algorithm
rewrite-expression-head
Rules
95×sqrt-prod
70×add-sqr-sqrt
36×*-un-lft-identity
24×add-exp-log add-cbrt-cube
18×difference-of-squares
17×associate-*r* log-pow
16×exp-prod
14×add-cube-cbrt associate-*l*
13×pow1
10×sqrt-div prod-exp cbrt-unprod unswap-sqr
sqrt-pow1 distribute-lft-out--
pow-prod-down add-log-exp
log-prod associate-*r/ distribute-lft-out
cbrt-undiv flip3-+ pow1/2 div-exp flip-+
frac-times associate-*l/ div-inv
sub-neg exp-sum frac-add associate-/r/ *-commutative
log-div flip3-- times-frac exp-diff sqrt-unprod diff-log rem-log-exp flip--
Counts
4 → 141
Calls
4 calls:
13.0ms
(* (sqrt (sqrt x)) (sqrt (sqrt (+ x 1.0))))
92.0ms
(* (+ (sqrt (/ 1.0 (sqrt x))) (/ (sqrt 1.0) (sqrt (sqrt (+ x 1.0))))) (/ (* (sqrt 1.0) (log (exp (- (sqrt (sqrt (+ x 1.0))) (sqrt (sqrt x)))))) (* (sqrt (sqrt x)) (sqrt (sqrt (+ x 1.0))))))
12.0ms
(log (exp (- (sqrt (sqrt (+ x 1.0))) (sqrt (sqrt x)))))
11.0ms
(- (sqrt (sqrt (+ x 1.0))) (sqrt (sqrt x)))

series1.4s

Counts
4 → 12
Calls
4 calls:
125.0ms
(* (sqrt (sqrt x)) (sqrt (sqrt (+ x 1.0))))
921.0ms
(* (+ (sqrt (/ 1.0 (sqrt x))) (/ (sqrt 1.0) (sqrt (sqrt (+ x 1.0))))) (/ (* (sqrt 1.0) (log (exp (- (sqrt (sqrt (+ x 1.0))) (sqrt (sqrt x)))))) (* (sqrt (sqrt x)) (sqrt (sqrt (+ x 1.0))))))
178.0ms
(log (exp (- (sqrt (sqrt (+ x 1.0))) (sqrt (sqrt x)))))
174.0ms
(- (sqrt (sqrt (+ x 1.0))) (sqrt (sqrt x)))

simplify55.0ms

Algorithm
egg-herbie
Counts
153 → 153
Iterations

Useful iterations: 1 (31.0ms)

IterNodesCost
013983153
150022750

prune559.0ms

Filtered
153 candidates to 103 candidates (67.3%)
Pruning

15 alts after pruning (14 fresh and 1 done)

PrunedKeptTotal
New1521153
Fresh01313
Picked011
Done000
Total15215167

Merged error: 11.5b

Counts
167 → 15

regimes83.0ms

Accuracy

98.1% (0.2b remaining)

Error of 10.5b against oracle of 10.3b and baseline of 19.7b

bsearch52.0ms

Steps
ItersRangePoint
9
164.2181510969774
3048118974.682059
7077.048346062627

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04527
14527

end0.0ms

sample831.0ms

Algorithm
intervals
Results
177.0ms1839×body640valid
174.0ms7900×body80nan
133.0ms1106×body1280valid
106.0ms4112×body80valid
46.0ms630×body320valid
15.0ms313×body160valid