A Python-based application that approximates a given function using its Taylor Series expansion. The app allows users to input a function, define the degree of the Taylor Series, specify the window of the graph, and choose the center point for the approximation. It then plots the original function alongside its Taylor Series approximation.
- Interactive Input: Users can input any valid mathematical function of (x), define the degree of the Taylor Series, and set the graphing window.
- Custom Taylor Series Center: The app allows users to choose the center point (a) for the Taylor Series expansion.
- Graphical Output: The app plots the original function and its Taylor Series approximation on the same graph for comparison.
- Numerical Approximation: It prints out the Taylor Series expansion without the higher-order terms (using
removeO()
).
- Input a Function: Enter a function in terms of (x) (e.g.,
sin(x)
,x**2 + x
,e**x
, etc.). The app automatically formats the input for processing. - Taylor Series Degree: Choose the degree of the Taylor Series for approximation.
- Graphing Window: Define the graph window by specifying the minimum and maximum values for both the (x) and (y) axes.
- Center Point: Input the center point (a) around which the Taylor Series will be expanded.
- Visualization: The app will plot the original function and its Taylor Series approximation in the specified window.
- Python 3.x
- Required libraries:
matplotlib
,numpy
,sympy
- Clone the Repository:
git clone https://github.com/your-username/taylor-series-app.git pip install matplotlib numpy sympy python taylor_series_app.py