This is a university 4th Semester project that implements various numerical integration methods including Midpoint, Trapezoid, Simpson's 1/3 and Simpson 3/8 using Python and Streamlit.
- Hamza Kamelen
- Muzamil Khalid
- Wajahat Tariq
- Moiz Mansoori
- Rayyan Ahmed
- Muhammad Sami
This project provides an interactive web application to demonstrate and compare different numerical integration techniques, including:
- Midpoint Rule
- Simpson's 1/3 Rule
- Simpson's 3/8 Rule
- Trapezoidal Rule
The application allows users to input custom functions or discrete data points and visualizes the integration process.
- Interactive user interface built with Streamlit
- Support for both continuous functions and discrete data points
- Real-time calculation and visualization of integration results
- Comparison of estimated values with actual integrals (for continuous functions)
- Error calculation and display
To run this project, you need the following Python libraries:
- streamlit
- numpy
- matplotlib
- scipy
You can install these dependencies using the provided requirements.txt
file.
- Clone this repository
- Install the required dependencies:
- pip install -r requirements.txt
- Run the Streamlit app:
main.py
: The main Streamlit applicationTrapezoidal.py
: Implementation of the Trapezoidal Rulesimpson_1_3.py
: Implementation of Simpson's 1/3 Rulesimpson_3_8.py
: Implementation of Simpson's 3/8 Rulemidpoint.py
: Implementation of the Midpoint Rulerequirements.txt
: List of required Python packages
This project is open-source and available under the MIT License.