Question: % error =( true-series approximation )/( true )times 100% Use MATLAB function sin to calculate the true value. Display the results in a structure
% error =( true-series approximation )/( true )\\\\times 100%\ Use MATLAB function sin to calculate the true value.\ Display the results in a structure format like in the gray box\ (You will use forintf with proper format. Use %% for displaying %)
,:,:,: 
sinx=x3!x3+5!x5 Create an M-file to implement this formula so that it computes and displays the values of sin(x) as each term in the series is added, up to the 7th term. For each of the preceding, compute and display the value of the sin(1.2) and the percent relative error as %error=truetrue-seriesapproximation100% Use MATLAB function s in to calculate the true value. Display the results in a structure format like in the gray box (You will use forintf with proper format. Use \%\% for displaying \%) sinx=x3!x3+5!x5 Create an M-file to implement this formula so that it computes and displays the values of sin(x) as each term in the series is added, up to the 7th term. For each of the preceding, compute and display the value of the sin(1.2) and the percent relative error as %error=truetrue-seriesapproximation100% Use MATLAB function s in to calculate the true value. Display the results in a structure format like in the gray box (You will use forintf with proper format. Use \%\% for displaying \%)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
