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 mfunction file that takes x x pi and n a natural number as inputs and calculates the value of sinx up to the nth polynomial. If the function name is mysine, then the filename of this function will be mysine.m Use MATLAB's builtin factorialn 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 significant digits can be expressed
using a series expansion as follows.
mysinepi ans
mysinepi ans
mysinepi ans
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
