The script approximates Taylor series for any given analytic function.
For more information about taylor series Visit : https://en.wikipedia.org/wiki/Taylor_series
For Example: The function f(x) = x sin2(x)+cos(x), the script approximates f in the interval (-10,10) with 100 points and 100 terms expanded around the point c=0 is calculated and the graph of the actual and approximated points are shown in below figure.