Skip to content

Commit 63c3966

Browse files
committed
some improvements
1 parent 4070e97 commit 63c3966

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

text/main/basics/variables/assignment/assignment.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@
224224
\FloatBarrier%
225225
\endhsection%
226226
%
227-
\hsection{LIU Hui's Method and the Approximation of~$\numberPi$}%
227+
\hsection{LIU Hui's Method for the Approximation of~$\numberPi$}%
228228
\label{sec:approximatePiLiuHui}%
229229
%
230230
\begin{figure}%
@@ -248,16 +248,16 @@
248248
\def\liuhuistf{\ensuremath{{\color{liuhui-s24-color}s_{24}}}}%
249249
%
250250
Let us now come to a more serious example.
251-
I am not good at mathematics, but I really like mathematics anyway, so we will go with a mathematics example: approximating~\numberPi.
251+
I am not good at mathematics, but I still really like mathematics anyway, so we will go with a mathematics example: approximating~\numberPi.
252252
The number~\numberPi\ is the ratio of the circumference of a circle and its diameter.
253253
A we already mentioned before in \cref{sec:float}, it is transcendental, a never-ending and never-repeating sequence of digits.
254254
We can compute it to a certain precision, e.g., as the \pythonilIdx{float} constant \pythonilIdx{pi} with value \pythonil{3.141592653589793}.
255255
But we can never really write it down.
256256

257-
Well, we I say \inQuotes{we can compute it}, then the question \inQuotes{How?} immediately arises.
258-
One particularly ingenious answer was given by the Chinese mathematician LIU Hui~(刘徽) somewhere in the third century~AD~\cite{OR2003LH} in his commentary to the famous Chinese mathematics book \emph{Jiu Zhang Suanshu}~(九章算术)~\cite{OR2003LH,SCL1999TNCOTMACAC,S1998LHATFGAOCM,D2010AALHOCAS,C2002LFLHADWTDM}.
259-
In \cref{fig:liuHuiCircle}, we show how~\numberPi, i.e., the ratio of the circumference and the diameter of a circle can be approximated.
260-
The idea of LIU Hui~(刘徽) was to inscribe regular~$e$\nobreakdashes-gons with an increasing number~$e$ of edges into a circlem such that the corners of the $e$\nobreakdashes-gons lie on the circle.
257+
Well, when I say \inQuotes{we can compute it}, then the question \inQuotes{How?} immediately arises.
258+
One particularly ingenious answer was given by the Chinese mathematician LIU Hui~(刘徽) somewhere in the third century~\pgls{CE}~\cite{OR2003LH,Y2024COACMMLHFHTIOMACE} in his commentary to the famous Chinese mathematics book \emph{Jiu Zhang Suanshu}~(九章算术)~\cite{OR2003LH,SCL1999TNCOTMACAC,S1998LHATFGAOCM,D2010AALHOCAS,C2002LFLHADWTDM}.
259+
In \cref{fig:liuHuiCircle}, we show how~\numberPi\ can be approximated based on the idea of LIU Hui~(刘徽):
260+
By inscribing regular~$e$\nobreakdashes-gons with an increasing number~$e$ of edges into a circlem such that the corners of the $e$\nobreakdashes-gons lie on the circle.
261261

262262
We start with a hexagon~($e=6$) where the radius~\liuhuir\ is equal to the radius of the circle.
263263
All the $e$~edges~\liuhuiss\ of this hexagon then have length~\liuhuir\ as well.

text/main/controlFlow/functions/functions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
%
179179
Finally, we confirm that \pythonil{gcd} and \pythonil{math_gcd} compute the same result for four test cases at the bottom of our program.
180180
Now that all is said and done, it should be mentioned that the Euclidean Algorithm has a particularly efficient binary variant which is faster than our implementation in \cref{lst:functions:def_gcd}.
181-
This binary variant may have been developed in China in the first century~CE~\cite{B1999FAOTBEA}.%
181+
This binary variant may have been developed in China in the first century~\pgls{CE}~\cite{B1999FAOTBEA}.%
182182
%
183183
\FloatBarrier%
184184
\endhsection%

text/main/controlFlow/loops/loops.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@
358358
\label{sec:whileLoop}%
359359
%
360360
Old clay tablets show that the Babylonians were able to approximate~$\sqrt{2}$ maybe as far back as 4000~years ago~\cite{FR1998SRAIOBMY7IC,S2011NA:NA}.
361-
The mathematician Hero(n) of Alexandria, who lived in the first century~CE, specified an abstract algorithm for computing the square root of numbers which, today, is known as Heron's Method~\cite{S2011NA:NA,K2009BMOCTSRJBOFTAOCC}.
361+
The mathematician Hero(n) of Alexandria, who lived in the first century~\pgls{CE}, specified an abstract algorithm for computing the square root of numbers which, today, is known as Heron's Method~\cite{S2011NA:NA,K2009BMOCTSRJBOFTAOCC}.
362362

363363
Given a number~$a$ and aiming to find the square root~$\sqrt{a}$ of~$a$, this algorithm starts with a guess~$x_0$, let's say~$x_0=1$.
364364
In each iteration~$i$, it will compute a new guess as follows~\cite{S2011NA:NA,K2009BMOCTSRJBOFTAOCC}:%

0 commit comments

Comments
 (0)