Question: using matlab. thanks! (1) Write a script file named sineseries.m that computes the value of sin(x) at a given x using n terms of the

using matlab. thanks!
(1) Write a script file named sineseries.m that computes the value of sin(x) at a given x using n terms of the series expansion of the sine function: 2k-1 3! 5! (2k-1)! Save th e file. Type help sineseries to see if MATLB can access your script file. Now compute sin( pi/6) with n= 1,5,10,20. Compare the results. Do the same for some other x of your choice. (2) Take the script file in problem (1) and convert it into a function file, using x and n to be inputs, and y as the output. Call the function as sine_series, and run it for n - 1, 5, 10, 20 and x-pi/6. Do the same for other x of your choice. (3) Solve the system of equations x, +5x2 + 2x3 = 6 8x2-7x3 =-2 5x (4) Solve the system of equations x+2y-z =1 x +z= 5 4x +4y 12 (5) Solve the equation 2 sin 2 x + 3 sin x for sins and then for x
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
