Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a ) Develop a Matlab function decima 1 2 binary that converts a decimal number x into a binary floating point number in enginecring notation.

a) Develop a Matlab function decima12binary that converts a decimal number x into a binary floating point number in enginecring notation. The function shall take as input the decimal number x and the number of bits to be used in the mantissa N(excluding the hidden bit) and shall output the vector m containing the N mantissa bits (excluding the hidden bit), the exponent p in decimal of the binary floating point number in engineering notation, and the remainder r of the transformation. Do not print out results to screen within the function.
b) Using the function decimal2binary convert the decimal number 0.1 to a binary foating point number in engineering notation using 10,50, and 60 mantissa bits and report the remainders.
c) Why does Matlab report the remainder as 0 when 60 mantissa bits are used, even though infinitely many bits would be required to convert the decimal number 0.1 into a binary foating point number?
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Database Systems For Integration Of Media And User Environments 98

Authors: Yahiko Kambayashi, Akifumi Makinouchi, Shunsuke Uemura, Katsumi Tanaka, Yoshifumi Masunaga

1st Edition

9810234368, 978-9810234362

More Books

Students also viewed these Databases questions

Question

What is meant by organisational theory ?

Answered: 1 week ago

Question

What is meant by decentralisation of authority ?

Answered: 1 week ago

Question

Briefly explain the qualities of an able supervisor

Answered: 1 week ago

Question

Define policy making?

Answered: 1 week ago

Question

Define co-ordination?

Answered: 1 week ago

Question

What is human nature?

Answered: 1 week ago