Details

Time bar (total: 5.2s)

sample45.0ms

Algorithm
intervals
Results
11.0ms244×body160nan
10.0ms490×body80nan
8.0ms256×body80valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0105
1115
2115

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 30.6b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(log (+ x (sqrt (- (* x x) 1.0))))
0.0b
(+ x (sqrt (- (* x x) 1.0)))
28.5b
(sqrt (- (* x x) 1.0))

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity
add-sqr-sqrt
pow1 add-cube-cbrt add-log-exp
add-exp-log log-prod sqrt-prod
add-cbrt-cube
log-div flip3-+ sqrt-div flip-+ distribute-lft-out
+-commutative rem-sqrt-square flip3-- sqrt-pow1 pow1/2 rem-log-exp sum-log log-pow flip-- difference-of-squares
Counts
3 → 43
Calls
3 calls:
9.0ms
(log (+ x (sqrt (- (* x x) 1.0))))
9.0ms
(+ x (sqrt (- (* x x) 1.0)))
5.0ms
(sqrt (- (* x x) 1.0))

series323.0ms

Counts
3 → 9
Calls
3 calls:
205.0ms
(log (+ x (sqrt (- (* x x) 1.0))))
69.0ms
(+ x (sqrt (- (* x x) 1.0)))
50.0ms
(sqrt (- (* x x) 1.0))

simplify134.0ms

Algorithm
egg-herbie
Counts
52 → 52
Iterations

Useful iterations: 3 (129.0ms)

IterNodesCost
0316408
11042379
24663366
35002365

prune129.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(log (+ x (* (sqrt (+ x (sqrt 1.0))) (sqrt (- x (sqrt 1.0))))))
0.0b
(+ x (* (sqrt (+ x (sqrt 1.0))) (sqrt (- x (sqrt 1.0)))))
0.5b
(* (sqrt (+ x (sqrt 1.0))) (sqrt (- x (sqrt 1.0))))

rewrite38.0ms

Algorithm
rewrite-expression-head
Rules
20×add-sqr-sqrt
15×sqrt-prod
12×*-un-lft-identity sqrt-div
associate-*r*
pow1 add-cube-cbrt
associate-*l*
add-exp-log
flip3-+ add-cbrt-cube flip-+ add-log-exp
frac-times unswap-sqr
log-prod flip3-- pow-prod-down flip--
log-div sqrt-pow1 pow1/2 associate-*r/ associate-*l/ difference-of-squares
+-commutative sqrt-unprod rem-log-exp prod-exp sum-log log-pow *-commutative cbrt-unprod distribute-lft-out distribute-lft-out--
Counts
3 → 67
Calls
3 calls:
2.0ms
(log (+ x (* (sqrt (+ x (sqrt 1.0))) (sqrt (- x (sqrt 1.0))))))
2.0ms
(+ x (* (sqrt (+ x (sqrt 1.0))) (sqrt (- x (sqrt 1.0)))))
32.0ms
(* (sqrt (+ x (sqrt 1.0))) (sqrt (- x (sqrt 1.0))))

series631.0ms

Counts
3 → 9
Calls
3 calls:
287.0ms
(log (+ x (* (sqrt (+ x (sqrt 1.0))) (sqrt (- x (sqrt 1.0))))))
148.0ms
(+ x (* (sqrt (+ x (sqrt 1.0))) (sqrt (- x (sqrt 1.0)))))
197.0ms
(* (sqrt (+ x (sqrt 1.0))) (sqrt (- x (sqrt 1.0))))

simplify53.0ms

Algorithm
egg-herbie
Counts
76 → 76
Iterations

Useful iterations: 2 (38.0ms)

IterNodesCost
0440941
11553864
25001848

prune214.0ms

Pruning

2 alts after pruning (1 fresh and 1 done)

Merged error: 0b

localize18.0ms

Local error

Found 4 expressions with local error:

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

rewrite203.0ms

Algorithm
rewrite-expression-head
Rules
484×sqrt-div
144×frac-times
102×sqrt-prod
89×pow1
84×sqrt-pow1
64×add-sqr-sqrt
63×pow-prod-down
61×flip3-+ flip-+
60×flip3-- flip--
48×associate-*r/ associate-*l/
42×pow1/2
28×*-un-lft-identity
25×associate-*r*
21×associate-*l*
20×add-exp-log add-cbrt-cube
18×add-cube-cbrt unswap-sqr
12×pow-prod-up
10×prod-exp cbrt-unprod
pow-sqr
sqrt-unprod
add-log-exp difference-of-squares
*-commutative distribute-lft-out
rem-sqrt-square pow-plus distribute-lft-out--
pow2 swap-sqr rem-square-sqrt
Counts
4 → 264
Calls
4 calls:
6.0ms
(sqrt (sqrt (+ x (sqrt 1.0))))
35.0ms
(* (sqrt (sqrt (+ x (sqrt 1.0)))) (sqrt (sqrt (- x (sqrt 1.0)))))
37.0ms
(* (sqrt (sqrt (+ x (sqrt 1.0)))) (sqrt (sqrt (- x (sqrt 1.0)))))
99.0ms
(* (* (sqrt (sqrt (+ x (sqrt 1.0)))) (sqrt (sqrt (- x (sqrt 1.0))))) (* (sqrt (sqrt (+ x (sqrt 1.0)))) (sqrt (sqrt (- x (sqrt 1.0))))))

series1.1s

Counts
4 → 12
Calls
4 calls:
128.0ms
(sqrt (sqrt (+ x (sqrt 1.0))))
367.0ms
(* (sqrt (sqrt (+ x (sqrt 1.0)))) (sqrt (sqrt (- x (sqrt 1.0)))))
390.0ms
(* (sqrt (sqrt (+ x (sqrt 1.0)))) (sqrt (sqrt (- x (sqrt 1.0)))))
198.0ms
(* (* (sqrt (sqrt (+ x (sqrt 1.0)))) (sqrt (sqrt (- x (sqrt 1.0))))) (* (sqrt (sqrt (+ x (sqrt 1.0)))) (sqrt (sqrt (- x (sqrt 1.0))))))

simplify145.0ms

Algorithm
egg-herbie
Counts
276 → 276
Iterations

Useful iterations: 2 (97.0ms)

IterNodesCost
011675584
144694837
250014816

prune790.0ms

Pruning

2 alts after pruning (0 fresh and 2 done)

Merged error: 0b

regimes17.0ms

Accuracy

0% (0.0b remaining)

Error of 0.1b against oracle of 0.1b and baseline of 0.1b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0139
1139

end0.0ms

sample1.3s

Algorithm
intervals
Results
370.0ms7745×body160nan
343.0ms16329×body80nan
235.0ms8000×body80valid