





















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






















































Numerical Solution of Engineeringand Scientific Problems^ David M. Rocke^ Department of Applied Science
-^ Counting numbers (unsigned integers) arethe numbers 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,11, … •^ In almost all computers, these numbersare represented in binary (base 2) ratherthan decimal. •^ We count 0, 1, 10, 11, 100, 101, 110, 111,1000, 1001, …
-^ Internet IP addresses consist of four bytes,so that no part of an IP address exceeds255 (UC Davis is 168.150.243.2).
-^ The IP address 168.150.243.2 looks like this inbinary:
10101000100101101111001100000010
-^ The sampling rate is the number of timesper second that a loudness measure istaken •^ CD’s are 44,100 times per second (44.1MHz) •^ Digital recordings are typically 44.1, 48,96, or 192 MHz
-^ 8-bit audio has loudness levels that exist^8 in 2= 256 discrete levels. This is crude •^ 16-bit audio has 2
16 = 65,536 loudness levels. This is what is used for CD’s • Audio is often now recorded in 24-bitaudio, which has 16,777,216 levels, and isdifficult to distinguish from the smoothoriginal
7
-^ Exponent +7 mantissa +1437526 •^ We represent this in binary on a computer
-^ Typical single/double precision:^ –^ 1 sign bit^ –^ 8/11 exponent bits (one sign)^ –^ 23/52 bit mantissa
-1^ =0.5 in decimal.
-^ Smallest positive number is 2
-^ If we divide this by 2 we get 0 (underflow)!