3 - Les alternatives et les structures

Pedro77
14.3K views

Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

Exercice 5

Calculer les racines d’une équation du second degré.

ax2+bx+c=0
Δ=b24ac
x1,x2=b±Δ2a

Exemples (valeurs de tests) :

  • 1 x² + 2x -3 => delta > 0 => x1 = 1 et x2 = -3
  • 1 x² + 2x +1 => delta = 0 => x1 = -1 et x2 = -1 (normal, une seule solution si delta nul)
  • 1 x² + 1x +1 => delta < 0 => Pas de solutions dans R
Open Source Your Knowledge: become a Contributor and help others learn. Create New Content