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”).
sinx= k=0n(-1)kx2k+12k+1! Write a function that calculates sin(x) by using the Taylor series. For the function name and
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am