Docsity

Binary Expansions of Real Numbers: Decimal to Binary Conversion, Study notes of Mathematics

Toggle sidebar
bg1
MthT 430 Notes Chapter 6a Binary Expansions and Arguments
Real Numbers and Binary Expansions
The real numbers in Rare identified with points on a horizontal line. For the time being,
we will identify a real number xwith a decimal expansion.
•Every decimal expansion represents a real number x:
x=±N.d1d2. . . ,
dk∈ {0,1, ..., 9}.
This is the statement that every infinite series of the form
d110−1+d210−2+. . . , dk∈ {0,1, ..., 9},
converges.
Just as well we could identify a real number xwith a binary expansion.
•Every binary expansion represents a real number x:
x=±N.binb1b2. . . ,
bk∈ {0,1}.
This is the statement that every infinite series of the form
b12−1+b22−2+. . . , bk∈ {0,1},
converges.
A demonstration of a correspondence between the binary expansion and a point on a
horizontal line was given in class.
Constructing the Binary Expansion
Let xbe a real number, 0 ≤x < 1.
We divide [0,1) into two half–open intervals, ·0,1
2and ·1
2,1.
0.bin0 0.bin1 = 2−11.bin0
•
x
chap6a.pdf page 1/3
pf3

Partial preview of the text

Download Binary Expansions of Real Numbers: Decimal to Binary Conversion and more Study notes Mathematics in PDF only on Docsity!

MthT 430 Notes Chapter 6a Binary Expansions and Arguments

Real Numbers and Binary Expansions

The real numbers in R are identified with points on a horizontal line. For the time being,

we will identify a real number x with a decimal expansion.

• Every decimal expansion represents a real number x:

x = ±N.d

d

d

k

This is the statement that every infinite series of the form

d

+ d

+... , d

k

converges.

Just as well we could identify a real number x with a binary expansion.

• Every binary expansion represents a real number x:

x = ±N.

bin

b

b

b

k

This is the statement that every infinite series of the form

b

+ b

+... , b

k

converges.

A demonstration of a correspondence between the binary expansion and a point on a

horizontal line was given in class.

Constructing the Binary Expansion

Let x be a real number, 0 ≤ x < 1.

We divide [0, 1) into two half–open intervals,

[

and

[

bin

bin

bin

x

Notice, that in binary notation we may write the two intervals respectively as

[

bin

and

[

bin

If x is in the left interval, x = 0 + 0 · 2

+.. ., so we let b

= 0, s

bin

b

, so that

x = 0.

bin

= s

+ r

where

0 ≤ r

If x is in the right interval, x = 0 + 1 · 2

+.. ., so we let b

= 1, s

bin

b

, so that

x = 0.

bin

= s

+ r

where

0 ≤ r

We formalize the process by saying

b

0 , 0 ≤ x <

≤ x < 1,

s

bin

b

= b

x = s

+ r

0 ≤ r

If the first remainder r

is 0, that is x = 0 or x =

, STOP; x = s

and the binary

expansion of x has been found.

If r

= 0, we apply a similar process to r

= x − s

to find the second binary digit in the

expansion of x. Let r

· r

. Once again divide [0, 1) into the two half–open intervals,

[

and

[

If r

is in the left interval, x = 0 + b

+.. .; If r

is in the right interval,

x = 0 + b

+.. ., so we let b

= 1. This is same is saying that x is in the left

or right half as the interval selected in step 1.

bin

bin

bin

bin

bin

x

r

= x −