Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. In class, we have discussed how the computer represents numbers in double precision in the memory. The largest number and the smallest positive normalized

image text in transcribed

1. In class, we have discussed how the computer represents numbers in double precision in the memory. The largest number and the smallest positive normalized number that can be presented are given by the predefined variables realmax and realmin respectively. The machine epsilon is given by eps. Another way to represent numbers is to use the single precision. It uses N = 23 digits for the fraction part. The exponent falls in the range L-126 esU 127. (a) What is the largest and the smallest normalized real numbers that can be exactly represented in thesin gle precision? Write down the expressions in the binary form. Then transform the binary representation into the decimal form and evaluate it in MATLAB. b) What is the machine epsilon for the single precision? Write down the expression in both binary and decimal form and evaluate it in MATLAB. (c) How many digits are meaningful in the single precision? (d) Write down two numbers that are equivalent in the single precision Hint: You can check your answers to (a) and (b) with the MATLAB predefined variables realmin('single') realmax('single') and eps ('single'). 1. In class, we have discussed how the computer represents numbers in double precision in the memory. The largest number and the smallest positive normalized number that can be presented are given by the predefined variables realmax and realmin respectively. The machine epsilon is given by eps. Another way to represent numbers is to use the single precision. It uses N = 23 digits for the fraction part. The exponent falls in the range L-126 esU 127. (a) What is the largest and the smallest normalized real numbers that can be exactly represented in thesin gle precision? Write down the expressions in the binary form. Then transform the binary representation into the decimal form and evaluate it in MATLAB. b) What is the machine epsilon for the single precision? Write down the expression in both binary and decimal form and evaluate it in MATLAB. (c) How many digits are meaningful in the single precision? (d) Write down two numbers that are equivalent in the single precision Hint: You can check your answers to (a) and (b) with the MATLAB predefined variables realmin('single') realmax('single') and eps ('single')

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_2

Step: 3

blur-text-image_3

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2010 Barcelona Spain September 2010 Proceedings Part 1 Lnai 6321

Authors: Jose L. Balcazar ,Francesco Bonchi ,Aristides Gionis ,Michele Sebag

2010th Edition

364215879X, 978-3642158797

More Books

Students also viewed these Databases questions