Skip to content

Commit

Permalink
Merge pull request #22 from KatherineCox/master
Browse files Browse the repository at this point in the history
corrections to chapter 2: 2.4.5, 2.4.7, 2.5.20, 2.5.30
  • Loading branch information
spamegg1 authored Mar 5, 2025
2 parents c9ef41a + 02eefab commit 1ef6137
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/Epp.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5268,11 +5268,11 @@ \subsubsection{Exercise 5}
\hline
1&1&1\\
\hline
1&0&0\\
1&0&1\\
\hline
0&1&1\\
0&1&0\\
\hline
0&0&0\\
0&0&1\\
\hline
\end{array}
$$
Expand Down Expand Up @@ -5308,19 +5308,19 @@ \subsubsection{Exercise 7}
\hline
P&Q&R&S\\
\hline
1&1&1&0\\
1&1&1&1\\
\hline
1&1&0&1\\
1&1&0&0\\
\hline
1&0&1&0\\
1&0&1&1\\
\hline
1&0&0&0\\
1&0&0&1\\
\hline
0&1&1&1\\
\hline
0&1&0&1\\
0&1&0&0\\
\hline
0&0&1&0\\
0&0&1&1\\
\hline
0&0&0&0\\
\hline
Expand Down Expand Up @@ -6233,7 +6233,7 @@ \subsubsection{Exercise 20}
1&0&1&0&1&0&0_\base{2}\\
-&&1&0&1&1&1_\base{2}\\
\hline
& &1&1&0&1&0_\base{2}\\
&1&1&1&1&0&1_\base{2}\\
\end{array}
$$
\end{proof}
Expand Down Expand Up @@ -6364,7 +6364,7 @@ \subsubsection{Exercise 30}
\begin{proof}
Due to leading 1, this is a negative integer.

$10111010_\base{2} \to $ flip the bits $\to 01000101_\base{2} \to$ add 1 $\to 01000110_\base{2} = 64 + 2 + 1 = 67_\base{10} = |-67|_\base{10}$. So the answer is $-67$.
$10111010_\base{2} \to $ flip the bits $\to 01000101_\base{2} \to$ add 1 $\to 01000110_\base{2} = 64 + 4 + 2 = 70_\base{10} = |-70|_\base{10}$. So the answer is $-70$.
\end{proof}

{\bf \color{cyan} Use 8-bit two’s complements to compute the sums in $31-36$.}
Expand Down

0 comments on commit 1ef6137

Please sign in to comment.