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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!