Question: Demonstration of datatype error/precision utilizing convergence: Given x ranging from 0 to 2*pi at an interval of pi/16, demonstrate using Matlab a table (disp or

Demonstration of datatype error/precision utilizing convergence:

Given x ranging from 0 to 2*pi at an interval of pi/16, demonstrate using Matlab a table (disp or sprintf) and a plot of n iterations as a function of x. Include the results for double and single precision. Save your .m file and publish the .pdf to your drop folder on the L: Drive.

Demonstration of datatype error/precision utilizing convergence: Given x ranging from 0 to

2*pi at an interval of pi/16, demonstrate using Matlab a table (disp

or sprintf) and a plot of n iterations as a function of

Results disp('datatype x_min x_max threshold n_minn_max'); disp('===================================================================='); disp('double '); disp('single '); disp('fi(x,1,32,28) '); disp('fi(x,1,32,24) disp('fi(x,1,32,20) disp('fi(x,1,32,16) disp('fi(x,1,32,12) '); disp('fi(x,1,32,8) disp('fi(x, 1, 32,4) disp('==== ====') datatype x_min x_max threshold n_min n_max = = = = = = = = = = == == = = == = = == = = == = = = = = = = = = = = = = = = = = = = = = = = = = double single fi(x,1, 32,28) fi(x,1, 32, 24) fi(x,1, 32, 20) fi(x,1, 32,16) fi(x,1, 32,12) fi (x, 1, 32,8) fi(x,1,32,4) = = = = = = = = = = = = = = = = = = = = == = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = == = = = = = = = = = = = = = = Plot xvs n for each datatype/combination . title legend axis labels all graphs in one plot. Bonus Make a 3D plot of the following: x=[x_min : x_delta : x_max]; fraction_length = [ fraction_length_min : 1: fraction_length_max ); n_max for a given x and fraction_length. Published with MATLABR2018a Results disp('datatype x_min x_max threshold n_minn_max'); disp('===================================================================='); disp('double '); disp('single '); disp('fi(x,1,32,28) '); disp('fi(x,1,32,24) disp('fi(x,1,32,20) disp('fi(x,1,32,16) disp('fi(x,1,32,12) '); disp('fi(x,1,32,8) disp('fi(x, 1, 32,4) disp('==== ====') datatype x_min x_max threshold n_min n_max = = = = = = = = = = == == = = == = = == = = == = = = = = = = = = = = = = = = = = = = = = = = = = double single fi(x,1, 32,28) fi(x,1, 32, 24) fi(x,1, 32, 20) fi(x,1, 32,16) fi(x,1, 32,12) fi (x, 1, 32,8) fi(x,1,32,4) = = = = = = = = = = = = = = = = = = = = == = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = == = = = = = = = = = = = = = = Plot xvs n for each datatype/combination . title legend axis labels all graphs in one plot. Bonus Make a 3D plot of the following: x=[x_min : x_delta : x_max]; fraction_length = [ fraction_length_min : 1: fraction_length_max ); n_max for a given x and fraction_length. Published with MATLABR2018a

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!