// xcas version=0.8.6 fontsize=14 font=0 currentlevel=1 // fltk 7Fl_Tile 11 56 998 475 14 0 [ // fltk N4xcas7EditeurE 11 56 998 381 14 0 571 , aire_sous_loi_normale(a,b,n):={ local f ,Inf, Sup, x0, x1,k; //n : nombre d'intervalles //Inf : somme des aires des petits rectangles //Sup: somme des aires des grands rectangles //x0 : borne inférieure de l'intervalle //x1 : borne supérieure de l'intervalle f(x):=(1/sqrt(2*pi))*exp(-x^2/2); Inf := 0; Sup:=0; x0 := a; x1 := x0+(b-a)/n; pour k de 1 jusque n faire Inf := Inf+ f(x1)*(b-a)/n; Sup:= Sup+f(x0)*(b-a)/n; x0 := x1; x1 := x0+(b-a)/n; fpour print("L'aire sous la courbe entre "+a+" et "+b+" est comprise entre "+round(Inf,6)+ " et "+round(Sup,6)) } :;, // fltk N4xcas10Log_OutputE 11 437 998 74 14 0 // Parsing f£// Success compiling f£// Parsing aire_sous_loi_normale£// Success compiling aire_sous_loi_normale£ , // fltk N4xcas8EquationE 11 511 998 20 14 0 1 "Done" ] , // fltk 7Fl_Tile 11 533 998 62 14 0 [ // fltk N4xcas19Multiline_Input_tabE 11 533 998 22 14 0 aire_sous_loi_normale(1,2,100) , // fltk N4xcas10Log_OutputE 11 555 998 20 14 0 L'aire sous la courbe entre 1 et 2 est comprise entre 0.134966 et 0.136846£ , // fltk N4xcas8EquationE 11 575 998 20 14 0 1 1 ] , // fltk 7Fl_Tile 11 597 998 43 14 0 [ // fltk N4xcas19Multiline_Input_tabE 11 597 998 22 14 0 round(integrer(1/sqrt(2*pi)*exp(-x^2/2),x,1,2),6) , // fltk N4xcas10Log_OutputE 11 619 998 1 14 0 , // fltk N4xcas8EquationE 11 620 998 20 14 0 1 0.135905 ] // context 4929 giac archive 7 0 11 8 0 0 'cas_setup' 7 0 11 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 7 0 2 1  14 0 1 Á 74 0 12 0 7 0 4 0 8 0 0 50 0 0 0 0 0 25 0 0 0 0 0 0 0 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x0 8 0 5 7 0 2 8 0 1 7 0 2 6 1 b 8 0 2 6 1 a 6 1 n 6 3 Sup 8 0 15 7 0 2 6 2 x1 6 2 x0 8 0 15 7 0 2 8 0 1 7 0 2 6 2 x0 8 0 5 7 0 2 8 0 1 7 0 2 6 1 b 8 0 2 6 1 a 6 1 n 6 2 x1 8 0 0 print 8 0 1 7 0 12 12 28 |L'aire sous la courbe entre 6 1 a 12 4 | et 6 1 b 12 13 | , avec µ= 6 2 mu 12 11 | et sigma= 6 5 sigma 12 20 | est comprise entre 8 0 0 'round' 7 1 2 6 3 Inf 0 6 0 12 4 | et 8 0 0 'round' 7 1 2 6 3 Sup 0 6 0 6 30 aire_sous_loi_normale_mu_sigma 8 0 15 7 0 2 8 0 0 program 7 0 3 7 1 1 6 1 x 10 0 299 0 0 5 0 8 0 4 7 1 2 8 0 5 7 0 2 0 1 0 8 0 4 7 1 2 8 0 0 'sqrt' 8 0 4 7 1 2 0 2 0 6 2 pi 0 5 0 8 0 8 8 0 5 7 0 2 8 0 2 8 0 7 7 0 2 8 0 5 7 0 2 8 0 1 7 0 2 6 1 x 8 0 2 0 50 0 0 5 0 0 2 0 0 2 0 6 1 g 8 0 15 7 0 2 0 101 0 6 1 k 8 0 15 7 0 2 8 0 0 program 7 0 3 7 1 1 6 1 n 7 1 1 0 0 0 8 0 42 7 0 2 7 1 5 6 1 f 6 1 k 6 1 a 6 2 x0 6 2 x1 7 0 6 8 0 15 7 0 2 8 0 0 program 7 0 3 7 1 1 6 1 x 7 1 1 0 0 0 8 0 7 7 0 2 6 1 x 0 2 0 6 1 f 8 0 15 7 0 2 0 0 0 6 1 a 8 0 15 7 0 2 0 0 0 6 2 x0 8 0 15 7 0 2 8 0 1 7 0 2 6 2 x0 8 0 5 7 0 2 0 1 0 6 1 n 6 2 x1 8 0 -1 pour 7 0 4 8 0 15 7 0 2 0 1 0 6 1 k 8 0 36 7 0 2 6 1 k 6 1 n 8 0 15 7 0 2 8 0 1 7 0 2 6 1 k 8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