of 17 /17
function f11=y(x) %UNTITLED2 Summary of this function goes here % Detailed explanation goes here f11=(1+x^2)^-1; end a = -1 b = 1 M = 10 >> s = trapeciocomp('f11',a,b,M) El valor de h es: h = 0.2000 s = 1.567463056905495

TAGS:

• #### sqrt1 cosx

Embed Size (px)

description

fghfg

function f11=y(x)%UNTITLED2 Summary of this function goes here% Detailed explanation goes heref11=(1+x^2)^-1;end

a =

-1

b =

1

M =

10>> s = trapeciocomp('f11',a,b,M)

El valor de h es:

h =

0.2000

s =

1.567463056905495

function f11=y(x)%UNTITLED2 Summary of this function goes here% Detailed explanation goes heref11=x^2*exp(-x);end

a =

0b =

4M =

10>> s = trapeciocomp('f11',a,b,M)El valor de h es: h = 0.4000

s =

1.521627781304418

function f11=y(x)%UNTITLED2 Summary of this function goes here% Detailed explanation goes heref11=2+sin(2*sqrt(x));end

a =

0

b =

1

M =

10>> s = trapeciocomp('f11',a,b,M)El valor de h es:

h =

0.1000

s =

2.857408847710652

function f11=y(x)%UNTITLED2 Summary of this function goes here% Detailed explanation goes heref11=2*x*cos(x);end

a = 0b = 2M = 10>> s = trapeciocomp('f11',a,b,M)El valor de h es:

h = 0.2000s = 0.783304087286666

function f11=y(x)%UNTITLED2 Summary of this function goes here% Detailed explanation goes heref11=1/(sqrt(x);end

a =

0.250000000000000

b =

4

M =

10>> s = trapeciocomp('f11',a,b,M)El valor de h es:

h =

0.375000000000000

s =

3.041919937648376

function f11=y(x)%UNTITLED2 Summary of this function goes here% Detailed explanation goes heref11=sin(2*x)*exp(-x);end

a =

0

b =

3.141592653589793

M =

10>> s = trapeciocomp('f11',a,b,M)El valor de h es:

h =

0.314159265358979

s =

0.366951220580332

function f11=y(x)%UNTITLED2 Summary of this function goes here% Detailed explanation goes heref11=sqrt(1+(3*x^2)^2);end

a =

0

b =

1

M =

10>> s = trapeciocomp('f11',a,b,M)El valor de h es:

h =

0.100000000000000

s =

1.552609449736454

function f11=y(x)%UNTITLED2 Summary of this function goes here% Detailed explanation goes heref11=sqrt(1+(cos(x))^2);end

a =

0

b =

0.785398163397448

M =

10>> s = trapeciocomp('f11',a,b,M)El valor de h es:

h =

0.078539816339745

s =

1.057885565546463

function f11=y(x)%UNTITLED2 Summary of this function goes here% Detailed explanation goes heref11=sqrt(1+(-exp(-x))^2);end

a =

0

b =

1

M =

10>> s = trapeciocomp('f11',a,b,M)El valor de h es:

h =

0.100000000000000

s =

1.193184700072844

function y=h(x)%UNTITLED2 Summary of this function goes here% Detailed explanation goes herey=sqrt(1+(3*x^2)^2);end

a =

0

b =

1

M =

5>> s=simpsoncomp('h',a,b,M)El valor de h es:

h =

0.100000000000000

s =

1.547864193993286

function y=h(x)%UNTITLED2 Summary of this function goes here% Detailed explanation goes herey=sqrt(1+(cos(x))^2);end

a =

0

b =

0.785398163397448

M =

5>> s=simpsoncomp('h',a,b,M)El valor de h es:

h =

0.078539816339745

s =

1.058095818067016

function y=h(x)%UNTITLED2 Summary of this function goes here% Detailed explanation goes heref11=sqrt(1+(-exp(-x))^2);end

a =

0

b =

1

M =

5>> s=simpsoncomp('h',a,b,M)El valor de h es:

h =

0.100000000000000

s =

1.192701855086052

Functionf11=y(x)%UNTITLED2 Summary of this function goes here% Detailed explanation goes heref11=2*pi*x^3*sqrt(1+(3*x^2)^2);end

a =

0

b =

1

M =

10>> s = trapeciocomp('f11',a,b,M)El valor de h es:

h =

0.100000000000000

s =

3.642446639175053

function f11=y(x)%UNTITLED2 Summary of this function goes here% Detailed explanation goes heref11=2*pi*sin(x)*sqrt(1+(cos(x))^2);end

a =

0

b =

0.785398163397448

M =

10>> s = trapeciocomp('f11',a,b,M)El valor de h es:

h =

0.078539816339745

s =

2.419723701954506

function f11=y(x)%UNTITLED2 Summary of this function goes here% Detailed explanation goes heref11=2*pi*exp(-x)*sqrt(1+(-exp(-x))^2);end

a =

0

b =

0.785398163397448

M =

10>> s = trapeciocomp('f11',a,b,M)El valor de h es:

h =

0.078539816339745

s =

4.255640643371105

function y=h(x)%UNTITLED2 Summary of this function goes here% Detailed explanation goes heref11=2*pi*x^3*sqrt(1+(3*x^2)^2);end

a =

0

b =

1

M =

5>> s=simpsoncomp('h',a,b,M)El valor de h es:

h =

0.100000000000000

s =

3.563728158787750

function y=h(x)%UNTITLED2 Summary of this function goes here% Detailed explanation goes herey=2*pi*sin(x)*sqrt(1+(cos(x))^2);end

a =

0

b =

0.785398163397448

M =

5>> s=simpsoncomp('h',a,b,M)El valor de h es:

h =

0.078539816339745

s =

2.422433790392179

function y=h(x)%UNTITLED2 Summary of this function goes here% Detailed explanation goes herey=2*pi*exp(-x)*sqrt(1+(-exp(-x))^2);end

a =

0

b =

1

M =

5>> s=simpsoncomp('h',a,b,M)El valor de h es:

h =

0.100000000000000

s =

4.849242825376739