Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In one step of base-10 scientific notation to base-2 scientific notation, we need to make numbers (in base-2) as large as possible before division by

In one step of base-10 scientific notation to base-2 scientific notation, we need to make numbers (in base-2) as large as possible before division by 10. This is to minimize the error due to integer division. We can use 64-bit unsigned integers in most of the calculations. As such, it is important to find the largest multiplier to a known value so that the product the multiplier (a power of 2) and the known value is as large as possible but not to exceed the largest value that can be represented by a 64-bit unsigned integer. This issue is further complicated by the fact that we need to add 5 before division by 10. This means we are looking for the largest natural number LaTeX: pp such that LaTeX: (x\cdot 2^p+5) \le (2^{64}-1)( x 2 p + 5 ) ( 2 64 1 ) where LaTeX: xx is the value given. What is the value of this LaTeX: pp when LaTeX: x=x =6,990,849? After thought: when you do this by hand, you can use a calculator and use the log functions. However, to do this quickly in a program, it is best to avoid any use of log functions. Think about how you can do this with only integer operations.

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

Database Systems For Advanced Applications 15th International Conference Dasfaa 2010 International Workshops Gdm Benchmarx Mcis Snsmw Diew Udm Tsukuba Japan April 2010 Revised Selected Papers Lncs 6193

Authors: Masatoshi Yoshikawa ,Xiaofeng Meng ,Takayuki Yumoto ,Qiang Ma ,Lifeng Sun ,Chiemi Watanabe

2010th Edition

3642145884, 978-3642145889

More Books

Students also viewed these Databases questions