@options; repereortho(450,270,30,1,1){ 0 , moyen , noir , num1 }; grille(); aimante(); @figure; A = point( -15 , 9 ) { i }; B = point( -15 , 6.5 ) { i }; C = point( -0.5 , 6.5 ) { i }; D = point( -0.5 , 9 ) { i }; E = point( -15 , 8.4 ) { i }; F = point( -15 , 7.8 ) { i }; G = point( -15 , 7.2 ) { i }; cadre = polygone( A , B , C , D ) { bleufonce , plein100 }; var b =random(-5,5) { 2 }; var a =random(-5,5) { -3 }; var yN =a+b { -1 }; M = point( 0 , b ) { i }; N = point( 1 , yN ) { i }; texte1 = texte( A ,"La droite rouge est la représentation graphique d'une fonction f.") { blanc , dec2 , car-1 }; Cf = droite( N , M ) { rouge }; texte2 = texte( E ,"Modifie les variables afin de déterminer f.") { dec2 }; coeff = entier( 4 , -10 , 10 , 1 ) { noir , fixe , (-13,5) }; ord_origine = entier( 1 , -10 , 10 , 1 ) { noir , fixe , (-13,4) }; H = point( -13 , 2 ) { i }; texte3 = texte( H ,"f(x) = $coeff$x + $ord_origine") { rouge , dec2 }; var toto =ord_origine-b { -1 }; var titi =coeff-a { 7 }; varsi test_a =[titi=0_5%,1,0] { 0 }; varsi test_b =[toto=0_3%,1,0] { 0 }; var total =test_a+test_b { 0 }; varsi t2 =[total=2,"Bravo ! Actualise la page pour une autre fonction.",""] { }; texte4 = texte( G ,"$t2$") { rouge , dec2 , gras }; I = point(-15 , 7.7 ) { i }; texte5 = texte( I ,"Tu as $total$ variable(s) correcte(s).") { blanc , dec2 }; @analyse; @enonce; @config; couleurfonddessin=0xffffff; figure=0,0,1014,689,ouvert; actualisescript=non;