« Fonctionnement d'un ordinateur/Les circuits de calcul flottant » : différence entre les versions
Contenu supprimé Contenu ajouté
Ligne 243 :
: <math>\log_2(x+y) = \log_2 x + \log_2 \left(1+\frac{y}{x}\right)</math>
Pour rappel, les représentations de x et y en flottant logarithmique sont égales à <math>\log_2(x)</math> et <math>\log_2(y)</math>. En notant ces dernières <math>e_y</math> et <math>e_x</math>, on a :
: <math>\log_2(x+y) = e_x + \log_2 \left(1+\frac{y}{x}\right)</math> Par définition, <math>y = 2^{e_y}</math> et <math>x = 2^{e_x}</math>. En injectant : <math>\log_2(x+y) = e_x + \log_2 \left(1+\frac{2^{e_y}}{2^{e_x}}\right)</math>
|