Question: %% P1: Demonstration of datatype error/precision utilizing Single, Double, and Fixed Integer Data Types and convergence %% Instructions: % Utilizing the following functions: % function

%% P1: Demonstration of datatype error/precision utilizing Single, Double, and Fixed Integer Data Types and convergence %% Instructions: % Utilizing the following functions: % function (value, error, n] = approximate_sine_relative_error_single( x, error_max ) % function ( value, error, n] = approximate_sine_relative_error_double( x, error_max ) % function (value, error, n] = approximate_sine_relative_error_fixed_point(x, error_max, sign, word_length, fraction_length) % % Evaluate the sine function for values from 0 to 2*pi using a constant % threshold for the following datatypes: % double % single % fixed point utilizing a = filv,s,w,f) where w,f vary as follows: % 32,4 % 32,8 % 32, 12 % 32, 16 % 32, 20 % 32, 24 % 32, 28 % Establish the relationship between n and error_max for a given datatype % as well. %% Output: % Table and plots explaining your procesdure for testing the relationships % of n( datatype ) and nl datatype, error_max ). Results should be % published using the Matlab publish feature to .pdf as well as them % source files corresponding to a "driver" and any functions (in spearate % files). %% Deliverables: % P1.zip %% P1: Demonstration of datatype error/precision utilizing Single, Double, and Fixed Integer Data Types and convergence %% Instructions: % Utilizing the following functions: % function (value, error, n] = approximate_sine_relative_error_single( x, error_max ) % function ( value, error, n] = approximate_sine_relative_error_double( x, error_max ) % function (value, error, n] = approximate_sine_relative_error_fixed_point(x, error_max, sign, word_length, fraction_length) % % Evaluate the sine function for values from 0 to 2*pi using a constant % threshold for the following datatypes: % double % single % fixed point utilizing a = filv,s,w,f) where w,f vary as follows: % 32,4 % 32,8 % 32, 12 % 32, 16 % 32, 20 % 32, 24 % 32, 28 % Establish the relationship between n and error_max for a given datatype % as well. %% Output: % Table and plots explaining your procesdure for testing the relationships % of n( datatype ) and nl datatype, error_max ). Results should be % published using the Matlab publish feature to .pdf as well as them % source files corresponding to a "driver" and any functions (in spearate % files). %% Deliverables: % P1.zip
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
