A Python program for numerical integration using Romberg Quadratures and trapezoidal sums.
A Python program for numerical integration using Romberg Quadratures and trapezoidal sums.
This can be run in Spyder, PyCharm, Jupyter, etc., with the Math class in a seperate file called methods.py. To use class you must define an equation (as a function), then create an instance with that equation. After that, you can use any of the methods from the “Math” class are available to use with the equation. See integrate.py for an example.