Details

Time bar (total: 3.8s)

sample44.0ms

Algorithm
intervals
Results
12.0ms260×body160nan
11.0ms533×body80nan
7.0ms256×body80valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0115
1125
2125

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 32.9b

localize10.0ms

Local error

Found 4 expressions with local error:

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

rewrite27.0ms

Algorithm
rewrite-expression-head
Rules
12×*-un-lft-identity
11×add-sqr-sqrt
add-cube-cbrt add-log-exp
pow1
add-exp-log
expm1-log1p-u log-prod sqrt-prod add-cbrt-cube log1p-expm1-u
fma-def prod-diff
log-div flip3-- flip3-+ sqrt-div flip-- flip-+ distribute-lft-out difference-of-squares
+-commutative sub-neg rem-sqrt-square sqrt-pow1 pow1/2 fma-neg diff-log rem-log-exp sum-log log-pow
Counts
4 → 71
Calls
4 calls:
9.0ms
(log (+ x (sqrt (- (* x x) 1.0))))
3.0ms
(- (* x x) 1.0)
9.0ms
(+ x (sqrt (- (* x x) 1.0)))
6.0ms
(sqrt (- (* x x) 1.0))

series396.0ms

Counts
4 → 12
Calls
4 calls:
200.0ms
(log (+ x (sqrt (- (* x x) 1.0))))
46.0ms
(- (* x x) 1.0)
74.0ms
(+ x (sqrt (- (* x x) 1.0)))
75.0ms
(sqrt (- (* x x) 1.0))

simplify44.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
0384531
11360471
25002457

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

rewrite36.0ms

Algorithm
rewrite-expression-head
Rules
21×add-sqr-sqrt
15×sqrt-prod
13×*-un-lft-identity
12×sqrt-div
add-cube-cbrt associate-*r*
pow1
associate-*l*
add-exp-log
flip3-+ add-cbrt-cube flip-+ add-log-exp
frac-times unswap-sqr
expm1-log1p-u log-prod flip3-- fma-def pow-prod-down flip-- log1p-expm1-u
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 → 76
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)))))
30.0ms
(* (sqrt (+ x (sqrt 1.0))) (sqrt (- x (sqrt 1.0))))

series636.0ms

Counts
3 → 9
Calls
3 calls:
284.0ms
(log (+ x (* (sqrt (+ x (sqrt 1.0))) (sqrt (- x (sqrt 1.0))))))
151.0ms
(+ x (* (sqrt (+ x (sqrt 1.0))) (sqrt (- x (sqrt 1.0)))))
201.0ms
(* (sqrt (+ x (sqrt 1.0))) (sqrt (- x (sqrt 1.0))))

simplify48.0ms

Algorithm
egg-herbie
Counts
85 → 85
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
04671012
11665907
25001894

prune231.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0b

localize9.0ms

Local error

Found 2 expressions with local error:

0.0b
(log (fma (sqrt (- x (sqrt 1.0))) (sqrt (+ x (sqrt 1.0))) x))
0.1b
(fma (sqrt (- x (sqrt 1.0))) (sqrt (+ x (sqrt 1.0))) x)

rewrite1.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-exp-log add-sqr-sqrt add-cube-cbrt log-prod *-un-lft-identity
expm1-log1p-u add-cbrt-cube log1p-expm1-u add-log-exp
rem-log-exp log-pow fma-udef
Counts
2 → 24
Calls
2 calls:
1.0ms
(log (fma (sqrt (- x (sqrt 1.0))) (sqrt (+ x (sqrt 1.0))) x))
0.0ms
(fma (sqrt (- x (sqrt 1.0))) (sqrt (+ x (sqrt 1.0))) x)

series689.0ms

Counts
2 → 6
Calls
2 calls:
440.0ms
(log (fma (sqrt (- x (sqrt 1.0))) (sqrt (+ x (sqrt 1.0))) x))
249.0ms
(fma (sqrt (- x (sqrt 1.0))) (sqrt (+ x (sqrt 1.0))) x)

simplify36.0ms

Algorithm
egg-herbie
Counts
30 → 30
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
0334452
11176394
25001379

prune101.0ms

Pruning

1 alts after pruning (0 fresh and 1 done)

Merged error: 0b

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0108
1108

end0.0ms

sample1.2s

Algorithm
intervals
Results
350.0ms7718×body160nan
328.0ms16265×body80nan
222.0ms8000×body80valid