Cours L'incontournable du chapitre
Exercice d'application

Déterminer les fonctions associées aux programmes suivants et les tracer sur une feuille quadrillée.

 

Programme 1

Variable :
$x$

Initialisation :
Lire $x$

Traitement :
$x -3 \rightarrow x$
$4x \rightarrow x$
$\dfrac{1}{x} \rightarrow x$

Sortie :
Afficher $x$

 

Programme 2

Variable :
$x$

Initialisation :
Lire $x$

Traitement :
$5x \rightarrow x$
$\dfrac{1}{x}\rightarrow x$
$x+5 \rightarrow x$

Sortie :
Afficher $x$

Programme 1

 

On en déduit donc :

$f(x) = \dfrac{1}{4(x-3)}$

67f1c2ce41ecee83538c97c842bfdd8bd572a4a9.png

 

Programme 2

 

On en déduit donc :

$f(x) = \dfrac{1}{5x} + 5$

73f2880af419b09cced045d90e8c26448be25883.png