Article may be outdated

This article is 10 days old. Some details may have changed since publication.

Hacker News·5 min read·hard

Numerical (In)Stability of Recurrence Relations

I
ibobev
Numerical (In)Stability of Recurrence Relations
AI Summary

This article explains the mathematical phenomenon of numerical instability in three-term recurrence relations, specifically regarding Bessel functions. It details how rounding errors can propagate when computing solutions that decay versus those that grow.

Why it matters

Understanding numerical stability is critical for scientists and engineers developing software that relies on high-precision mathematical computations.

Dive DeeperCreate a free account to unlock

The previous post gave several examples of three-term recurrence relations for special functions. These relations can be computationally useful, but they have to be applied carefully.

Several years ago I wrote a post on stable and unstable recurrences . In that post I show that the stability of the recurrence relation for Bessel functions produces depends on which kind of Bessel function and which direction the recurrence is applied.

In the forward direction, computing higher order values from lower order values, works well for Bessel functions of the second kind Y n but not for Bessel functions of the first kind J n . In the reverse direction, the recurrence is stable for J n but not for Y n .

I didn’t explain in that post why this is. In this post I will.

Continue reading on Headlinne

Create a free account to read the full article.

Read full article →
sciencetechnology

Get smarter about the news

Sign up free for a feed built around what you actually care about, Dive Deeper research on any story, and the full text of every article.

Create free account

Already have an account? Sign in