Question: Please use MATLAB to answer this question. Please leave several comments in the program to better help my understanding Q1) (a) In the double precision
Please use MATLAB to answer this question. Please leave several comments in the program to better help my understanding
Q1) (a) In the double precision implementation of the IEEE standard for binary floating point numbers (i) What is the decimal value of the smallest defined normal number? (ii) What is the decimal value of smallest defined subnormal number? (iii) What is the decimal value of largest defined number? (iv) What is the value of eps, and explain its relationship to the number of significant digits? (b) Write a program to calculate eas an approximate series summation, to an accuracy of 101. The -rasanapproximatheenpusumommand.Dennotruntheprogram. value ofx should be supplied to the program with the "input" command. Do not run the program. (c) Vectorize the MATLAB code (do not run): r-0: 1/14:1:th-0:2*pi/22:2"pi; for j-1:11 for i=1:21 x(ij)-rG)sin(th(o); y(ij)-r) cos(th()) end end (d) Plot the function y -10x-100x+50cos(x) over a range of x values sufficient to show the positive root. Use the function "ftero" to find that root
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
