Limits

In this lesson, we will learn about computing limits in SymPy.

We'll cover the following

SymPy calculates symbolic limits with the limit() function using the Gruntz algorithm.

The input arguments of the limit() function are the mathematical function itself, the variable for which the limit is to be computed, and the point of evaluation:

limit(f(x), x, x0)

Computing limits

Let’s compute a famous sinc function example and see if the limit() function returns the correct value.

limx0sin(x)x=1\lim_{x\to 0}\frac{sin (x)}{x}=1

Get hands-on with 1400+ tech skills courses.