Details

Time bar (total: 3.6s)

sample86.0ms

Algorithm
intervals
Results
18.0ms100×body2560nan
18.0ms558×body80nan
14.0ms76×body1280nan
10.0ms256×body80valid
5.0ms44×body640nan
2.0ms17×body320nan
1.0ms14×body160nan

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0105
1115
2115

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: 32.4b

Counts
2 → 1

localize7.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ x (sqrt (- (* x x) 1.0)))
0.0b
(- (* x x) 1.0)
30.1b
(sqrt (- (* x x) 1.0))

rewrite14.0ms

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

series151.0ms

Counts
3 → 9
Calls
3 calls:
60.0ms
(+ x (sqrt (- (* x x) 1.0)))
40.0ms
(- (* x x) 1.0)
51.0ms
(sqrt (- (* x x) 1.0))

simplify77.0ms

Algorithm
egg-herbie
Counts
50 → 50
Iterations

Useful iterations: 3 (73.0ms)

IterNodesCost
0228284
1702267
22784261
35001260

prune94.0ms

Filtered
50 candidates to 40 candidates (80.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New49150
Fresh000
Picked101
Done000
Total50151

Merged error: 0b

Counts
51 → 1

localize10.0ms

Local error

Found 2 expressions with local error:

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))))

rewrite16.0ms

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

series350.0ms

Counts
2 → 6
Calls
2 calls:
135.0ms
(+ x (* (sqrt (+ x (sqrt 1.0))) (sqrt (- x (sqrt 1.0)))))
215.0ms
(* (sqrt (+ x (sqrt 1.0))) (sqrt (- x (sqrt 1.0))))

simplify43.0ms

Algorithm
egg-herbie
Counts
59 → 59
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0360656
11271612
25002600

prune127.0ms

Filtered
59 candidates to 44 candidates (74.6%)
Pruning

1 alts after pruning (0 fresh and 1 done)

PrunedKeptTotal
New59059
Fresh000
Picked011
Done000
Total59160

Merged error: 0b

Counts
60 → 1

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0139
1139

end0.0ms

sample2.6s

Algorithm
intervals
Results
620.0ms3028×body2560nan
570.0ms16308×body80nan
420.0ms2544×body1280nan
338.0ms8000×body80valid
167.0ms1252×body640nan
72.0ms668×body320nan
22.0ms314×body160nan