Question: (20%) The function sin(x) can be written as a Taylor series by: sin()=(1)2+1(2+1)!=0 Where x is in radian. Write a function that calculates sin(x) by
(20%) The function sin(x) can be written as a Taylor series by: sin()=(1)2+1(2+1)!=0 Where x is in radian. Write a function that calculates sin(x) by using the Taylor series. For the function name and arguments use y=Tsin(x,n). The input arguments are the angle x in radian, and n, the number of terms in the series. Using the function to calculate sin(120 o ) for Case: n=9.(Hint: find more information on the command factorial by typing help factorial).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
