Page 1 of 1

sinx= k=0n(-1)kx2k+12k+1! Write a function that calculates sin(x) by using the Taylor series. For the function name and

Posted: Wed Jul 06, 2022 11:53 am
by answerhappygod
sinx=k=0n(-1)kx2k+12k+1!
Write a function that calculatessin(x) by using the Taylor series. For the function name andarguments use y=Tsin(x,n). The input arguments are the angle x indegrees and n, the number of terms in the series. Using thefunction to calculate sin(150o) using three and seventerm (Hint: find more information on the command “factorial” bytyping “help factorial”).