Equation du second degré - Exercice d'algorithmique

19 Oct 2019 · 4 min
4:09

In this French instructional video, the presenter walks through the design of a classic algorithm to solve quadratic equations of the form ax² + bx + c = 0. He first reviews the mathematical cases: when a = 0 the equation reduces to a linear one (solution -c/b if b ≠ 0, otherwise no solution), and when a ≠ 0 the discriminant Δ = b² – 4ac determines the number of real roots (none if Δ < 0, one if Δ = 0, two if Δ > 0) with the corresponding formulas. The speaker then translates this reasoning into a step‑by‑step pseudocode algorithm, specifying required real‑type variables (a, b, c, D) and noting naming constraints (Δ cannot be used as an identifier). He details the nested conditional structure (Si/FinSi) that checks the various cases, computes Δ, and either displays messages or stores computed roots in auxiliary variables before output. Practical implementation notes are given, such as using a separate variable for the square‑root result, preferring built‑in functions like sqrt over a custom Racine, and ensuring balanced Si/FinSi blocks. The video concludes by encouraging learners to refine the basic algorithm for efficiency.

Chapters

More from Yamossoun

8:56
youtube.com

Compteur synchrone - Logique séquentielle

2w ago
11:58
youtube.com

Compteur asynchrone et diviseur de fréquence - Logique séquentielle

3w ago
11:37
youtube.com

Les registres (parallèle et à décalage) - Logique séquentielle

1mo ago
6:14
youtube.com

Bascule T (Toggle) - Logique séquentielle

1mo ago
12:05
youtube.com

Bascule JK - Logique séquentielle

1mo ago
9:17
youtube.com

Bascule D flip-flop active sur front montant - Logique séquentielle

1mo ago
10:08
youtube.com

Bascule D Latch - Logique séquentielle

1mo ago
8:13
youtube.com

Bascule RS - Logique séquentielle

1mo ago
5:04
youtube.com

Logique séquentielle - Introduction

2mo ago
1:15
youtube.com

Le codeur - Logique combinatoire #codeur #logique #circuit #booleanlogic

2mo ago
1:56
youtube.com

Algorithme de calcule de la racine carrée par dichotomie #dichotomy #squareroot #algorithm

3mo ago
See all content