diff --git a/output/main-opt-final.pdf b/output/main-opt-final.pdf new file mode 100644 index 0000000..b6dfc53 Binary files /dev/null and b/output/main-opt-final.pdf differ diff --git a/output/main.pdf b/output/main.pdf index 53c7fab..9bc760f 100644 Binary files a/output/main.pdf and b/output/main.pdf differ diff --git a/section/comp.tex b/section/comp.tex index 90a9a8d..3dc2c42 100644 --- a/section/comp.tex +++ b/section/comp.tex @@ -30,7 +30,9 @@ \subsection{結果} -C言語では型変換の影響で評価中に値が真の値からずれ、最終的に演算結果が電卓と異なるものとなった。 +C言語では型変換の影響で評価中に値が真の値からずれ、最終的に演算結果が電卓と異なる\\ものとなった。 +式\ref{e4}から、丸括弧内を評価してから型変換を行なっていることが分かる。 +式\ref{e2}、式\ref{e5}では型指定直後の数値のみ型変換を行なっている。 \begin{table} \caption{電卓とC言語での評価結果} diff --git a/section/p25.tex b/section/p25.tex index 2215feb..d390ca6 100644 --- a/section/p25.tex +++ b/section/p25.tex @@ -1,6 +1,6 @@ \section{演習課題1 演習2ー5} -2つの整数値を読み込み、前者の値が後者の値の何\%であるかを倍精度浮動小数点数として表示するプログラム。 +2つの整数値を読み込み、前者の値が後者の値の何\%であるかを倍精度浮動小数点数として\\表示するプログラム。 \subsection{コードリスティング}