AlgoBox : for

Algorithme de Newton pour 4x^3+20x²-352x+126=0
choisir n=6
x=7 puis x=1 puis x=-12

Tester l'algorithme
Cliquer sur ce bouton pour exécuter l'algorithme : 

Résultats

Code de l'algorithme
1   VARIABLES
2     x EST_DU_TYPE NOMBRE
3     i EST_DU_TYPE NOMBRE
4     n EST_DU_TYPE NOMBRE
5   DEBUT_ALGORITHME
6     LIRE n
7     LIRE x
8     POUR i ALLANT_DE 1 A n
9       DEBUT_POUR
10      x PREND_LA_VALEUR x-F1(x)/(12*x*x+40*x-352)
11      FIN_POUR
12    AFFICHER "x="
13    AFFICHER x
14  FIN_ALGORITHME
15 
16 Fonction numérique utilisée :
17 F1(x)=4*pow(x,3)+20*x*x-352*x+126