Question: Here is the function from Example 1: function [ sum ] = Taylor ( x , n ) sum = 0 ; for i =
Here is the function from Example 1:
function [sum] = Taylor(x, n)
sum = 0;
for i = 0 : n
sum = sum + ( i ^ i ) / factorial(i);
end
end
Example 3: Write a Matlab script that uses the function in Example 1 to plot the abs. relative error in the Taylor series approximation T, - k! as a function of n=1 ,2, , 50 for x=10 and x=-10. Matlab functions to use: "semilogy", etc
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
