[SOLVED] CS-SE4X03 -Assignment 1

30.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (2 votes)

Problem 1 [2 points] Explain the output of this MATLAB code
a = -1.10714946411818e+17; b = -8.039634349988262e-01; c = 1.107149464118181e+17; a+b+c (a+b)+c a+(b+c) (a+c)+b a+(c+b)
Problem 2 [7 points] Consider a floating-point (FP) system with 4 decimal digits and rounding to the nearest. Give an example for each of the following: a. (a + b)/2 ∈/ [a,b]

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.