Commit 1ec5b41f by Louis

### Correction des tests

parent 303d72c1
 ... ... @@ -3,8 +3,8 @@ Donner la forme canonique des polynômes $P$ , $Q$ , $R$ et $S$ . \begin{align*} P\,(x) &= x^{2}-16\,x+4 & Q\,(x) &= x^{2}+7\,x+8 & S\,(x) &= 4\,x^{2}-7\,x-3\\ &= \left( x-8\right) ^{2}-8^{2}+4 & &= \left( x+\dfrac{7}{2}\right) ^{2}-\left( \dfrac{7}{2} \right) ^{2}+8 & &= 4\times \left( x^{2}-\dfrac{7}{4}\,x-\dfrac{3}{4}\right) \\ &= \left( x-8\right) ^{2}+64+4 & &= \left( x+\dfrac{7}{2}\right) ^{2}+\dfrac{-49}{4}+\dfrac{8_{\times 4}}{1_{\times 4}} & &= 4\times \left( \left( x-\dfrac{7}{8}\right) ^{2}-\left( \dfrac{7}{8} \right) ^{2}+\dfrac{-3}{4}\right) \\ \Aboxed{P\,(x) &= \left( x-8\right) ^{2}+68} & &= \left( x+\dfrac{7}{2}\right) ^{2}+\dfrac{-49}{4}+\dfrac{32}{4} & &= 4\times \left( \left( x-\dfrac{7}{8}\right) ^{2}+\dfrac{-49}{64}+\dfrac{-3_{\times 16}}{4_{\times 16}}\right) \\ &= \left( x-8\right) ^{2}-64+4 & &= \left( x+\dfrac{7}{2}\right) ^{2}+\dfrac{-49}{4}+\dfrac{8_{\times 4}}{1_{\times 4}} & &= 4\times \left( \left( x-\dfrac{7}{8}\right) ^{2}-\left( \dfrac{7}{8} \right) ^{2}+\dfrac{-3}{4}\right) \\ \Aboxed{P\,(x) &= \left( x-8\right) ^{2}-60} & &= \left( x+\dfrac{7}{2}\right) ^{2}+\dfrac{-49}{4}+\dfrac{32}{4} & &= 4\times \left( \left( x-\dfrac{7}{8}\right) ^{2}+\dfrac{-49}{64}+\dfrac{-3_{\times 16}}{4_{\times 16}}\right) \\ R\,(x) &= 25\,x^{2}-60\,x+36 & \Aboxed{Q\,(x) &= \left( x+\dfrac{7}{2}\right) ^{2}+\dfrac{-17}{4}} & &= 4\times \left( \left( x-\dfrac{7}{8}\right) ^{2}+\dfrac{-49}{64}+\dfrac{-48}{64}\right) \\ &= \left( 5\,x-6\right) ^{2} & & & &= 4\times \left( \left( x-\dfrac{7}{8}\right) ^{2}+\dfrac{-97}{64}\right) \\ &= \left( 5\times \left( x-\dfrac{6}{5}\right) \right) ^{2} & & & &= 4\times \left( x-\dfrac{7}{8}\right) ^{2}+\dfrac{-97\times \cancel{4}}{\cancel{4}\times 16}\\ ... ...
 ... ... @@ -274,7 +274,7 @@ def splitting(calcul): ['-6', '*', '(-11)', '*', '(-5)'] >>> Priorites3.splitting("Fraction(1,7)x^2-Fraction(3,8)x-1") ['Fraction(1,7)', 'x', '^', '2', '-', 'Fraction(3,8)', 'x', '-', '1'] >>> splitting('-7**2') >>> Priorites3.splitting('-7**2') ['-', '7', '**', '2'] :rtype: list ... ... @@ -687,7 +687,7 @@ def priorites(calcul): >>> from pyromaths.outils import Priorites3 >>> Priorites3.priorites('-1+5-(-5)+(-6)*1') [['-1', '+', '5', '+', '5', '-', '6'], ['9', '-', '6'], ['3']] [['4', '+', '5', '-', '6'], ['9', '-', '6'], ['3']] >>> Priorites3.priorites('-5**2+6') [['-', '25', '+', '6'], ['-25', '+', '6'], ['-19']] >>> Priorites3.priorites('Polynome([[Fraction(6, 7), 0]], "x")*Polynome([[Fraction(1,3), 1], [1,0]], "x")') ... ...
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!