SequenceLimit
became NumericalMath``NSequenceLimitNumericalMath`NSequenceLimit
. In the past, that change broke some of the examples on NLimit
that used SequenceLimit
. I reported the breakage, and the examples were fixed to use the same syntax but not actually call the now-non-existent function. The only remaining reference in the documentation that I can find to the use of SequenceLimit
as if it were still a function is on the last bullet point of NLimit
's detailed description for its Method
option: "uses SequenceLimit
on constructed sequence".
Recently, I started investigating the behavior of NumericalMath``NSequenceLimitNumericalMath`NSequenceLimit
because I need it in my engineering work. I feel NumericalMath``NSequenceLimitNumericalMath`NSequenceLimit
has some quite confusing shortcomings in regard to the approximation it returns vs. the number of terms supplied, so I wrote my own version below from some references. I also posted a C++ gist version on GitHub.
A comparison appears below showing the convergence of partial sums of series approximations to Pi
and E
. Afterward, I use symbolic lists to document several parts of NumericalMath``NSequenceLimitNumericalMath`NSequenceLimit
that seem... possibly wrong... to me.
Below, I illustrate the difference between the behavior of the built-in NumericalMath``NSequenceLimitNumericalMath`NSequenceLimit
function vs. my sequenceLimit
function for symbolic lists, like {a,b,c,d}
.