Está en la página 1de 5
[function Boole (a,b,n) (ba) /(n=2) 5 x@input (‘Ingrese valores de x=") yeinput ("Ingrese valores de y=") suma03=euma03+14*y (ie) ¢ end Integrals (2*n/45) * (7*y (1) +suma01+suma02+suma03+7*y(n)) >> Boole (0,44, 13) Ingrese valores de x-[0 4 £ 12 16 20 24 28 52 36 40 44 49] >> Trapecio0i (4,12) Ingrese valores de x=[0 ¢ 8 16 12 20 24 28 32 36 40 44 48] Ingrese valores de y=[13 16 20 25 30 27 30 27 25 20 16 13 20] Integral = $96.0000 ye 13° 16 «200-25 3D 27 802 D2 Integral = 959.6829 >> Simpsonol (4,12) Valores para x=[0 4 8 12 16 20 24 28 32 36 40 44 48] Valores para y=[13 16 20 25 30 27 30 27 25 20 16 13 20] Integral = 657.3333 >> Boole (0,44, 13) >> Trapeciodl (4,12) Ingrese valores de x=[0 4 8 12 16 20 24 28 32 36 40 44 48] Ingrese valores de y=[20 24 38 45 40 45 50 43 40 33 28 25 36] Integral = 1634.0000| “Sungrese valores de y=[2U 24 SE $5 40 45 SU 43 Su 33 Ze 2d Sey ye 20 22 «38 450 4085 808g. integral = 1.8944e403 >> Simpson01 (4,12) Valores para x=[0 4 8 12 16 20 24 28 32 36 40 44 48] Valores para y=[20 24 38 45 40 45 50 43 40 33 28 25 36] Integral = 1090.6667 4 an pt -~_ _ 3-2-0) = ae | [eens oo ARK ITO 5300 255 979 285 x 6 Les HE Ses, + Ue CSE o TTS “ 300 255. 279.285 6

También podría gustarte