Question: Use matlab and create a function please! ( 2 0 % ) The function s i n ( x ) can be written as a

Use matlab and create a function please!(20%) The function sin(x) can be written as a Taylor series by:
sin(x)=k=0n(-1)kx2k+1(2k+1)!
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(150) for case a)n=3, case b)n=7.(Hint: find more information on the command "factorial" by typing "help factorial").
Create a text file containing all your functions. The file name should be "Assignment_7_FirstName_LastName.docx"
Use matlab and create a function please! ( 2 0 %

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 Programming Questions!