Question: This problem uses the 'for' command. The sine of xCreate an m - function file that takes x ( 0 x pi / 4 )

This problem uses the 'for' command.
The sine of xCreate an m-function file that takes x (0 x pi/4) and n (a natural number) as inputs and calculates the value of sin(x) up to the (2n-1)th polynomial. If the function name is mysine, then the filename of this function will be mysine.m. Use MATLAB's built-in factorial(n) function to obtain the factorials used in the series expansion.
Fill in the table below and submit it (execute 'format long' in the command window to display 15 significant digits). can be expressed
using a series expansion as follows.
mysine(pi/16,5)-> ans =0.195090322016129
mysine(pi/16,3)-> ans =0.195090324247368
mysine(pi/16,1)-> ans =0.196349540849362
 This problem uses the 'for' command. The sine of xCreate an

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