Etude Dares sur les conditions de travail dans le secteur privé et la fonction publique
Algobox Et Etude de Fonction Avec GRAPH
description
Transcript of Algobox Et Etude de Fonction Avec GRAPH
-
AlgoBox : Algobox et etude de fonction
Etude de fonctions
Graphique
Xmin: -2 ; Xmax: 2Ymin: -10 ; Ymax: 2GradX: 0.5 ; GradY: 2
Code de l'algorithme
1 VARIABLESVARIABLES2 x EST_DU_TYPE NOMBRE3 y EST_DU_TYPE NOMBRE4 DEBUT_ALGORITHMEDEBUT_ALGORITHME5 x PREND_LA_VALEUR -26 TANT_QUETANT_QUE (x!=2) FAIREFAIRE7 DEBUT_TANT_QUEDEBUT_TANT_QUE8 AFFICHER "Pour x="9 AFFICHER x10 y PREND_LA_VALEUR F1(x)11 AFFICHER " on a y="12 AFFICHER y13 x PREND_LA_VALEUR x+0.2514 AFFICHER "\r"15 TRACER_POINT (x,y)16 FIN_TANT_QUEFIN_TANT_QUE17 FIN_ALGORITHMEFIN_ALGORITHME18 19 Fonction numrique utilise :20 F1(x)=2*x*x+4*x-5
Rsultats
***Algorithme lanc***Pour x=-2 on a y=-5Pour x=-1.75 on a y=-5.875Pour x=-1.5 on a y=-6.5Pour x=-1.25 on a y=-6.875Pour x=-1 on a y=-7Pour x=-0.75 on a y=-6.875Pour x=-0.5 on a y=-6.5Pour x=-0.25 on a y=-5.875Pour x=0 on a y=-5Pour x=0.25 on a y=-3.875Pour x=0.5 on a y=-2.5Pour x=0.75 on a y=-0.875Pour x=1 on a y=1Pour x=1.25 on a y=3.125Pour x=1.5 on a y=5.5
-
Gnr par AlgoBox