Question: 5. (Programning) Textbook, p. 35 #17. Write a Matlab program that (a) sums up 1 for n1,2,, 10,000; (b) rounds each number 1 to 5


5. (Programning) Textbook, p. 35 #17. Write a Matlab program that (a) sums up 1 for n1,2,, 10,000; (b) rounds each number 1 to 5 decimal digits and the sums then up in 5-digit decimal arithmetic for n1,2,...,10.000; (c) sums up the same rounded numbers (in 5-digit decimal arithmetic) in reverse order, i.e., for n 10,000,...,2,1 Compare the three results and explain your observations. For generating numbers with the requested precision, use the provided file round.digits.m
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
