Write a function called TaylorSin.m that takes as input an array x, and positive integer N, and returns the Nth Taylor polynomial approximation of sin(x), centered at a = 0. The first line of your code should read
function s = TaylorSin(x,N)
HINT: in computing k!, use kfact = k*(k-1)*kfact since you are counting by 2
Get Answers For Free
Most questions answered within 1 hours.