Fix: inégalités dans l'algorithme

This commit is contained in:
Bertrand Benjamin 2020-05-23 08:21:24 +02:00
parent f7b7e12ab6
commit 63d33da905
2 changed files with 3 additions and 3 deletions

View File

@ -93,9 +93,9 @@
\SetAlgoLined
$a \leftarrow 1$ \;
$b \leftarrow 5$ \;
\Tq{$b-a \leq 0.01$}{
\Tq{$b-a \geq 0.01$}{
$m \leftarrow \dfrac{b+a}{2}$ \;
\eSi{f(m) > 0}{
\eSi{f(m) < 0}{
$a \leftarrow m$\;
}{
$b \leftarrow m$\;
@ -111,7 +111,7 @@
\begin{center}
\begin{tabular}{|*{5}{p{2cm}|}}
\hline
$a$ & $b$ & $(b-a) \leq 0.01$ & $m$ & $f(m) > 0$ \\
$a$ & $b$ & $(b-a) \geq 0.01$ & $m$ & $f(m) < 0$ \\
\hline
& & & & \\
\hline