This web-based calculator allows users to compute definite integrals and derivatives of mathematical functions. The calculator uses Pyodide, a Python distribution for the browser, to run Python code for symbolic computation.
- Definite Integral Calculation: Computes the definite integral of a user-defined function over a specified interval using both symbolic integration and Monte Carlo approximation.
- Derivative Calculation: Computes the derivative of a user-defined function.
- Interactive Interface: Users can select between integration and derivation, input functions, and specify integration bounds interactively.
- A modern web browser with JavaScript enabled.
- Open the Application: Visit the GitHub Pages URL where the application is hosted.
- Select Calculation Type: Choose between "Integration" and "Derivation" using the radio buttons.
- Input Function:
- For integration, enter the function, lower bound, and upper bound.
- For derivation, enter the function to differentiate.
- Preview: The entered function and integral bounds will be previewed in LaTeX format.
- Calculate: Click the "Calculate" button to perform the computation. The results will be displayed, showing both the regular integral and Monte Carlo approximation for integration or the derivative for derivation.
- Pyodide: Loads and runs Python code directly in the browser.
- SymPy: Performs symbolic mathematics.
- NumPy: Handles numerical operations, especially for the Monte Carlo approximation.
- MathJax: Renders mathematical notation in LaTeX format.