Integration with SymPy or Scipy

Shen Ge
3 min readDec 1, 2021
Photo by Jeswin Thomas on Unsplash

Integration is a critical part of applications requiring the use of calculus. How do we proceed to integrate a function in Python? There are multiple libraries but I will focus on the two most popular ones — symbolic integration with SymPy and numerical integration with SciPy. Both can work but the code is different for either. Which one you decide to use depends on your particular code.

Shen Ge

Aerospace engineer who enjoys Python, math, physics, space and poetry. Become a member and read all my work: