This was built to visualize how Maclaurin polynomial approximations
Runs on NumPy and Matplotlib, nothing else.
-
Degree slider: Adjust
$n$ from 0 to 25. The plot redraws when you click update plot. - Grid step input: Change the step size for the calculation grid. Garbage inputs (text, out-of-range numbers) just reset to 0.01.
-
Error plot: A second chart shows the absolute error
$e^x - P_n(x)$ across the domain so you can actually see where things go wrong. -
Error stats: Shows the max absolute error over
$[-2, 2]$ and the exact$x$ where it's worst.
Python 3, plus:
numpymatplotlib
pip install numpy matplotlibpython3 app.py-
Degree
$n$ : Drag the slider (bottom left). Plots update automatically. -
Grid step: Type a value like
0.01or0.05in the text box (bottom right). - Update plot: Click to apply. Anything invalid or out of range (0.0–0.5) falls back to 0.01.
The Maclaurin series for
The tool computes the partial sum np.exp(x) over
This project is licensed under the MIT License - see the LICENSE file for details.