You are on page 1of 17

INTERPOLACION DE DATOS

NUMERO X Y(extrados) Y(intrados) Y(LineaMedia)


1 0 0 0 0
2 0.0125 0.022962 -0.021311 0.0008255
3 0.025 0.032134 -0.028876 0.001629
4 0.05 0.044639 -0.038284 0.0031775
5 0.075 0.053672 -0.044316 0.004678
6 0.1 0.060749 -0.048486 0.0061315
7 0.15 0.071152 -0.053559 0.0087965
8 0.2 0.07803 -0.055823 0.0111035
9 0.25 0.082495 -0.056148 0.0131735
10 0.3 0.084971 -0.055029 0.014971
11 0.4 0.085499 -0.049874 0.0178125
12 0.5 0.0812 -0.0423 0.01945
13 0.6 0.073242 -0.033311 0.0199655
14 0.7 0.061542 -0.023994 0.018774
15 0.8 0.045574 -0.015679 0.0149475
16 0.9 0.025588 -0.0080577 0.00876515
17 1 0.0103 -0.0103 0

Matriz

50𝑎0 + 21.50021𝑎1 + 14.93789𝑎2 + 11,83365𝑎3 = 0.519705


21.50021𝑎0 + 14.93789𝑎1 + 11,83365𝑎2 + 9.97792𝑎3 = 0.26072
14.93789𝑎0 + 11,83365𝑎1 + 9.97792𝑎2 + 8.72565𝑎3 = 0.16201
11,83365𝑎0 + 9.97792𝑎1 + 8.72565𝑎2 + 7.81510𝑎3 = 0.11228
METODO DE JAUSS JORDAN

50 21.50021 14.93789 11,83365


𝑎0 0.519705
𝑎1 0.26072
21.50021 14.93789 11,83365 9.97792 [𝑎 ] = [ ]
2 0.16201
𝑎3 0.11228
14.93789 11,83365 9.97792 8.72565
11,83365 9.97792 8.72565 7.81510

50 21.50021 14.93789 11,83365 𝑎0 0.519705


21.50021 14.93789 11,83365 9.97792 𝑎1 0.26072
14.93789 11,83365 9.97792 8.72565 𝑎2 0.16201
11,83365 9.97792 8.72565 7.81510 𝑎3 0.11228

1000 0.0002853
0100 0.0576
[ ] [ ]
0010 −0.016008
0001 −0.041733
1000 𝑎0 0.0002853
0100 𝑎1 0.0576
[ ] [𝑎 ] = [ ]
0010 2 −0.016008
0001 𝑎3 −0.041733

DE ESTA MANERA DETERMINAMOS LAS CONSTANTES:

𝑎0 = 0.0002853
𝑎1 = 0.0576
𝑎2 = −0.016008
𝑎3 = −0.041733
REEMPLAZAMOS LOS COEFICIENTES EN LA ECUACION:

𝑓(𝑥) = 0.0002853 + 0.0576𝑥 − 0.016008𝑥 2 − 0.041733 𝑥 3

LA ECUACION DE LA LINEA MEDIA:

𝑦(𝑥) = 0.0002853 + 0.0576𝑥 − 0.0160080𝑥 2 − 0.041733 𝑥 3

DERIVANDO:

𝛽𝑖 (𝑥) = 0.0576 − 0.032016𝑥 − 0.125199𝑥 2


PROGRAMACION EN MATLAB

clc,clear

A = zeros(200);

b = 0;

for i = 1:200

for j = 1:200

b =(1/(0.5+(j-i)));

A(i,j)= b;

end

end

A;

dlm='0.0576 − 0.032016*x − 0.125199 *(x^2)';

n=input('Ingrese el número de puntos: ');

h=1/n;

alpha=5*pi/180;

for i=1:n

Xi(i)=((1+4*(i-1))*h)/4;

Xj(i)=((3+4*(i-1))*h)/4;

end

for i=1:n

x=Xj(i);

Bi(i)=eval(dlm);

end

for i=1:n

fc(i)=2*pi*(sin(alpha)-Bi(i));

end

fc;
A1=inv(A);

%resultados finales

gamma=fc*A1;

dP=2*sum(gamma);

disp('La MATRIZ A: ');

disp(A)

disp('La MATRIZ INVERSA DE A: ');

disp(A1)

disp('El vector gamma: ');

disp(gamma)

disp('La diferencia de presiones es: ');

disp(dP)
MATRIZ A
INVERSA DE A
LA MATRIZ COLUMNA GAMMA ES:

gamma =

-0.0003

-0.0005

-0.0006

-0.0008

-0.0009

-0.0011

-0.0012

-0.0013

-0.0015

-0.0016

-0.0017

-0.0018

-0.0019

-0.0021

-0.0022

-0.0023

-0.0024

-0.0025

-0.0026

-0.0027

-0.0028

-0.0029

-0.0030

-0.0030

-0.0031

-0.0032

-0.0032
-0.0033

-0.0033

-0.0034

-0.0034

-0.0034

-0.0034

-0.0034

-0.0034

-0.0034

-0.0034

-0.0034

-0.0034

-0.0033

-0.0033

-0.0032

-0.0031

-0.0031

-0.0030

-0.0029

-0.0028

-0.0026

-0.0025

-0.0023

-0.0022

-0.0020

-0.0018

-0.0016

-0.0014

-0.0012
-0.0009

-0.0007

-0.0004

-0.0001

0.0002

0.0005

0.0008

0.0011

0.0015

0.0019

0.0023

0.0027

0.0031

0.0036

0.0040

0.0045

0.0050

0.0056

0.0061

0.0067

0.0073

0.0079

0.0085

0.0092

0.0098

0.0105

0.0113

0.0120

0.0128
0.0136

0.0144

0.0152

0.0161

0.0170

0.0180

0.0189

0.0199

0.0209

0.0220

0.0230

0.0241

0.0253

0.0265

0.0277

0.0289

0.0302

0.0315

0.0328

0.0342

0.0357

0.0371

0.0386

0.0402

0.0417

0.0434

0.0450

0.0468

0.0485
0.0503

0.0522

0.0541

0.0561

0.0581

0.0601

0.0623

0.0644

0.0667

0.0690

0.0713

0.0737

0.0762

0.0788

0.0814

0.0841

0.0868

0.0896

0.0926

0.0956

0.0986

0.1018

0.1050

0.1084

0.1118

0.1153

0.1190

0.1227

0.1265
0.1305

0.1346

0.1387

0.1431

0.1475

0.1521

0.1568

0.1617

0.1667

0.1719

0.1773

0.1829

0.1886

0.1945

0.2007

0.2070

0.2136

0.2205

0.2275

0.2349

0.2426

0.2505

0.2588

0.2675

0.2765

0.2859

0.2958

0.3061

0.3169
0.3283

0.3403

0.3529

0.3662

0.3803

0.3953

0.4112

0.4282

0.4464

0.4660

0.4871

0.5099

0.5348

0.5620

0.5920

0.6253

0.6627

0.7050

0.7535

0.8100

0.8771

0.9588

1.0617

1.1972

1.3885

1.6907

2.2872

4.6410
LA DIFERENCIA DE PRESIONES ES:

dP = 67.1632

You might also like