for loop practice – Taylor Series!The moment you finishimplementing the trigonometric functions, you realize that you haveforgotten your favorite function: the exponential! The TaylorSeries for the exponential function is푒푥=1+푥1!+푥22!+푥33!+...,‒∞<푥<∞a) Using a for loop, compute anddisplay the error of the Taylor series when using 12 and 15 terms,each as compared to the exponential function when evaluated at x =2. b) Can you figure out how to compute and display the number ofterms necessary for this function to have an error within yourallowed range of 0.001 when evaluated at x = 3. Display this error.For MATLAB