edit représentation mathématique du logarithme

This commit is contained in:
2024-03-19 09:01:37 +01:00
parent d6104d046e
commit ee549ade6b

View File

@@ -74,27 +74,34 @@ Soit un tableau de taille 𝑛.
Si on « coupe » ce tableau en deux parts égales, cela revient à diviser 𝑛 par deux à chaque itération :
<img src="https://render.githubusercontent.com/render/math?math=n_1=\frac{n}{2}">
$$
n_1=\frac{n}{2}
$$
<br>
<img src="https://render.githubusercontent.com/render/math?math=n_2=\frac{n_1}{2}">
$$
n_2=\frac{n_1}{2}
$$
<br>
<img src="https://render.githubusercontent.com/render/math?math=n_3=\frac{n_2}{2}">
$$
n_3=\frac{n_2}{2}
$$
***Important*** : la taille dun tableau étant forcément un *nombre entier*, 𝑛𝑖 va devenir à un moment ou un autre égal à 1.
Cela signifiera quaprès avoir divisé 𝑛 par 2 un nombre de fois égal à un certain nombre 𝑎, le tableau ne comportera plus quune seule valeur (et par conséquent lalgorithme sarrête).
<img src="https://render.githubusercontent.com/render/math?math=n_i=1=\frac{n}{2*2*...*2}=\frac{n}{2a}">
$$
$$
$$
n_i=1=\frac{n}{2*2*...*2}=\frac{n}{2a}
$$
Soit : 𝑎 =log<sub>2</sub>(𝑛)