Details

Time bar (total: 4.8s)

sample305.0ms

Algorithm
intervals
Results
38.0ms759×body80nan
12.0ms255×body80valid
0.0msbody160valid

simplify8.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
094
1104
2104

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.5b

localize7.0ms

Local error

Found 1 expressions with local error:

0.5b
(* (sqrt (- x 1.0)) (sqrt x))

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
15×add-sqr-sqrt
12×sqrt-prod
associate-*l*
*-un-lft-identity
associate-*r*
pow1 add-cube-cbrt
unswap-sqr
add-exp-log pow-prod-down add-cbrt-cube
sqrt-pow1 pow1/2 sqrt-div associate-*l/
flip3-- sqrt-unprod prod-exp *-commutative flip-- cbrt-unprod distribute-lft-out-- add-log-exp difference-of-squares
Counts
1 → 34
Calls
1 calls:
16.0ms
(* (sqrt (- x 1.0)) (sqrt x))

series70.0ms

Counts
1 → 3
Calls
1 calls:
70.0ms
(* (sqrt (- x 1.0)) (sqrt x))

simplify74.0ms

Algorithm
egg-herbie
Counts
37 → 37
Iterations

Useful iterations: 2 (19.0ms)

IterNodesCost
0181216
1610206
22471201
35002201

prune73.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0b

localize7.0ms

Local error

Found 1 expressions with local error:

0.5b
(* (sqrt (- x 1.0)) (sqrt x))

rewrite14.0ms

Algorithm
rewrite-expression-head
Rules
15×add-sqr-sqrt
12×sqrt-prod
associate-*l*
*-un-lft-identity
associate-*r*
pow1 add-cube-cbrt
unswap-sqr
add-exp-log pow-prod-down add-cbrt-cube
sqrt-pow1 pow1/2 sqrt-div associate-*l/
flip3-- sqrt-unprod prod-exp *-commutative flip-- cbrt-unprod distribute-lft-out-- add-log-exp difference-of-squares
Counts
1 → 34
Calls
1 calls:
13.0ms
(* (sqrt (- x 1.0)) (sqrt x))

series67.0ms

Counts
1 → 3
Calls
1 calls:
66.0ms
(* (sqrt (- x 1.0)) (sqrt x))

simplify72.0ms

Algorithm
egg-herbie
Counts
37 → 37
Iterations

Useful iterations: 2 (17.0ms)

IterNodesCost
0181216
1610206
22471201
35002201

prune71.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0b

localize10.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (+ (sqrt x) (sqrt 1.0)))
0.1b
(sqrt (- (sqrt x) (sqrt 1.0)))
0.2b
(* (sqrt (+ (sqrt x) (sqrt 1.0))) (* (sqrt (- (sqrt x) (sqrt 1.0))) (sqrt x)))
0.4b
(* (sqrt (- (sqrt x) (sqrt 1.0))) (sqrt x))

rewrite98.0ms

Algorithm
rewrite-expression-head
Rules
51×sqrt-prod
38×add-sqr-sqrt
28×*-un-lft-identity
20×associate-*l*
18×pow1 sqrt-div
12×add-cube-cbrt
11×add-exp-log add-cbrt-cube
10×pow-prod-down associate-*l/
difference-of-squares
sqrt-pow1 pow1/2 associate-*r*
flip3-- flip--
frac-times flip3-+ prod-exp cbrt-unprod flip-+ distribute-lft-out distribute-lft-out-- add-log-exp unswap-sqr
sqrt-unprod
rem-sqrt-square associate-*r/ *-commutative
Counts
4 → 110
Calls
4 calls:
11.0ms
(sqrt (+ (sqrt x) (sqrt 1.0)))
9.0ms
(sqrt (- (sqrt x) (sqrt 1.0)))
47.0ms
(* (sqrt (+ (sqrt x) (sqrt 1.0))) (* (sqrt (- (sqrt x) (sqrt 1.0))) (sqrt x)))
28.0ms
(* (sqrt (- (sqrt x) (sqrt 1.0))) (sqrt x))

series1.5s

Counts
4 → 12
Calls
4 calls:
122.0ms
(sqrt (+ (sqrt x) (sqrt 1.0)))
168.0ms
(sqrt (- (sqrt x) (sqrt 1.0)))
872.0ms
(* (sqrt (+ (sqrt x) (sqrt 1.0))) (* (sqrt (- (sqrt x) (sqrt 1.0))) (sqrt x)))
294.0ms
(* (sqrt (- (sqrt x) (sqrt 1.0))) (sqrt x))

simplify93.0ms

Algorithm
egg-herbie
Counts
122 → 122
Iterations

Useful iterations: 2 (79.0ms)

IterNodesCost
09701669
137521504
250021494

prune309.0ms

Pruning

3 alts after pruning (1 fresh and 2 done)

Merged error: 0b

localize8.0ms

Local error

Found 1 expressions with local error:

0.0b
(- x (+ 0.5 (* 0.125 (/ 1 x))))

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
add-log-exp
add-sqr-sqrt *-un-lft-identity
diff-log
pow1 add-exp-log add-cube-cbrt sub-neg flip3-- sum-log add-cbrt-cube flip-- associate--r+ distribute-lft-out-- difference-of-squares
Counts
1 → 16
Calls
1 calls:
11.0ms
(- x (+ 0.5 (* 0.125 (/ 1 x))))

series20.0ms

Counts
1 → 3
Calls
1 calls:
20.0ms
(- x (+ 0.5 (* 0.125 (/ 1 x))))

simplify35.0ms

Algorithm
egg-herbie
Counts
19 → 19
Iterations

Useful iterations: 3 (32.0ms)

IterNodesCost
096126
1283117
21070115
35001110

prune38.0ms

Pruning

3 alts after pruning (0 fresh and 3 done)

Merged error: 0b

regimes35.0ms

Accuracy

0% (0.5b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0136
1136

end0.0ms

sample1.9s

Algorithm
intervals
Results
1.2s24434×body80nan
364.0ms7990×body80valid
1.0ms10×body160valid