Answered step by step
Verified Expert Solution
Question
1 Approved Answer
EXERCISE THREE: Addition in Base 2 Using Matlab 1 . Write a function z = AddIntegral ( x , y ) which takes as input
EXERCISE THREE: Addition in Base Using Matlab
Write a function z AddIntegral xy which takes as input two vectors x and y representing two positive integers in base and adds them. It returns the sum z which is also a vector in base Example: For x and y your function should return z
Write a function IF AddFractional xy which takes as input two vectors x and y representing two fractional parts in base and adds them. The result might have an integral part I which is not zero. The function therefore returns two vectors: the integral part I of the sum and its fractional part F both in base
Example: For x and y your function should return: I and F
Write a function IF AddBinary Ix Fx Iy Fy which will operate on two
fractional binary numbers x and y whose integral parts are the binary vectors Ix and Iy
respectively, and their fractional parts are the binary vectors Fx and Fy respectively.
It returns I F which are two vectors containing respectively the integral and the
fractional part of the sum of x and y Example: For Ix Iy Fx and Fy your function should return: I and F
Write a function IFE mainFx Fy which will operate on two positive numbers x and y in IEEE single precision assuming integral parts equal to and an exponent equal to zero. It takes as input Fx and Fy which are respectively the fractional parts of x and y in the IEEE single representation. It returns IFE which are vectors containing respectively the integral, the fractional part, and the exponent of the sum of x and y in a normalized format and rounded to the closest in the IEEE single precision representation. Example: For Fy and
Fx your function should return: I F and E
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started