# Exemples valides: # a b c Discrimant Racine_1 Racine_2 Commentaire # ---- ------ ---- --------- ---------- ------------ ----------- # 1 -1 -1 2.236068 -0.61803398 1.6180339 Nombre d'or # 4 -12 9 0.0 1.5 1.5 Racine double # -128 32767 1 32767.007 255.99221 -3.0517578E-5 Min/Max coeficients #1 # 127 -32768 -128 32768.992 -0.00390625 258.01965 Min/Max coeficients #2 # 6 5 1 1.0 -0.5 -0.33333334 2 racines negatives # 1 0 -1 2.8284271 -1.4142135 1.4142135 Racines de (x^2 - 2) = 0 => +/-sqrt(2) # -1 0 4 4.0 2.0 -2.0 Racines de (-x^2 + 4) = 0 => +/-2 # 1 32767 1 32767.0 -32767.0 0.0 b >> a => ~(32767 x b + 1) # 1 1 -128 22.649503 -11.824751 10.824751 x1 + x2 = -1 et x1 * x2 = -127.999985212 # Exemples non valides: # a b c Discrimant Racine_1 Racine_2 Commentaire # ---- ------ ---- --------- ----------- ------------- ----------- # 0 1 1 1.0 -Infinity NaN Division par 0 a cause de a = 0 # 0 -1 1 1.0 NaN Infinity Division par 0 a cause de a = 0 # 1 1 1 NaN NaN NaN Discriminant negatif (pas de solutions reelles)