Вы находитесь на странице: 1из 29

Encontrar la curva deseada con la siguiente tabla

x
0.05
0.11
0.15
0.31
0.46
0.52
0.7
0.74
0.82
0.98
1.17

y
0.956
0.89
0.832
0.717
0.571
0.539
0.378
0.37
0.306
0.242
0.104

Criterio de Convergencia
ND

Tolerancia
3
0.0005

NP

MaxIter
11

Para polinomios
Sumatorias

n=

X^2

YX

0.05
0.11
0.15
0.31
0.46
0.52
0.7
0.74
0.82
0.98
1.17

0.956
0.89
0.832
0.717
0.571
0.539
0.378
0.37
0.306
0.242
0.104

0.05
0.11
0.15
0.31
0.46
0.52
0.7
0.74
0.82
0.98
1.17

0.0025
0.0121
0.0225
0.0961
0.2116
0.2704
0.49
0.5476
0.6724
0.9604
1.3689

0.956
0.89
0.832
0.717
0.571
0.539
0.378
0.37
0.306
0.242
0.104

0.0478
0.0979
0.1248
0.22227
0.26266
0.28028
0.2646
0.2738
0.25092
0.23716
0.12168

6.01

4.6545

5.905

2.18387

Sistema para n = 1
11

6.01

5.905

6.01

4.6545

2.18387

Matriz Inversa

0.3086661273

-0.3985569718

-0.3985569718

0.7294719949

Resolviendo los coeficientes son


a
0.9522768678
-0.7604069127

Ajuste

xy

P2
Exp

0.0152787155
0.0693863343

Pot

0.1929264839

De la tabla anterior la mejor curva es la parabola


y=

0.99796838 -1.01804246 *x

0.22468213 *x^2

yp_1

S^2

0.9142565221
0.8686321074
0.8382158309
0.7165507248
0.6024896879
0.5568652732
0.4199920289
0.3895757524
0.3287431993
0.2070780933
0.0626007799

0.0017425179
0.0004565868
3.86365534E-005
2.01848178E-007
0.0009916004
0.000319168
0.0017633305
0.0003832101
0.0005172531
0.0012195396
0.0017138954
0.0091459403

xy_1

0.0318781365

Checar CC

Sumatorias

n=

X^3

X^4

0.000125
0.001331
0.003375
0.029791
0.097336
0.140608
0.343
0.405224
0.551368
0.941192
1.601613

0.00000625
0.00014641
0.00050625
0.00923521
0.04477456
0.07311616
0.2401
0.29986576
0.45212176
0.92236816
1.87388721

4.114963

3.91612773

Sistema para n = 2
11

6.01

6.01

4.6545

4.6545

4.114963

Matriz Inversa

0.5955020934

-2.0159062801

-2.0159062801

9.84903542

1.4104788305

-7.9531064116

Resolviendo los coeficientes son


a
0.9979683842
-1.0180424647
0.2246821328

0.01527872

2
YX^2

yp_2

S^2

0.00239
0.010769
0.01872
0.0689037
0.1208236
0.1457456
0.18522
0.202612
0.2057544
0.2324168
0.1423656

0.9476279663
0.8887023669
0.8503173625
0.7039671731
0.5772115897
0.5293403512
0.3954329039
0.3676528962
0.3142498292
0.2160714891
0.114426072

7.00909486E-005
1.68385174E-006
0.0003355258
0.0001698546
3.85838466E-005
9.33088145E-005
0.0003039061
5.50889629E-006
6.80596816E-005
0.0006722877
0.000108703

1.3357207

0.0018675132

4.6545

5.905

4.114963

2.18387

3.91612773

1.3357207

xy_2

0.0152787155

Checar CC

Checar Oscila

1.4104788305
-7.9531064116
6.9358475451

oeficientes son

Sumatorias

n=

X^5

X^6

YX^3

yp_3

S^2

3.125E-007
1.61051E-005
7.59375E-005
0.0028629151
0.0205962976
0.0380204032
0.16807
0.2219006624
0.3707398432
0.9039207968
2.1924480357

1.5625E-008
1.771561E-006
1.1390625E-005
0.0008875037
0.0094742969
0.0197706097
0.117649
0.1642064902
0.3040066714
0.8858423809
2.5651642018

0.0001195
0.00118459
0.002808
0.021360147
0.055578856
0.075787712
0.129654
0.14993288
0.168718608
0.227768464
0.166567752

0.9505942056
0.8891174856
0.8494530256
0.7007818055
0.5747924254
0.5277035258
0.396613189
0.3693851095
0.3168065338
0.2184185249
0.1113341694

2.92226136E-005
7.78831729E-007
0.0003046081
0.0002630298
1.43824902E-005
0.0001276103
0.0003464508
3.78090313E-007
0.0001167812
0.000556086
0.00005379

3.9186513091

4.0670143323

0.999480509

0.0018131183

Sistema para n = 3
11

6.01

4.6545

4.114963

5.905

6.01

4.6545

4.114963

3.91612773

2.18387

4.6545

4.114963

3.91612773

3.9186513091

1.3357207

4.114963

3.91612773

3.9186513091

4.0670143323

0.999480509

xy_2

0.0160940019

Matriz Inversa
1.1987506893

-8.4823443295

14.7524733383

-8.4823443295

79.1651039979

-150.9707305204 77.8176566363

14.7524733383

-150.9707305204 302.0195305261 -160.5586784444

-7.2595440871

77.8176566363

-160.5586784444 87.3619610661

Resolviendo los coeficientes son


a
1.0036967045
-1.0794463843
0.3513748732
-0.0689350857

-7.2595440871

Sumatorias
Checar CC

Checar Oscila

exponencial
ln(Y)

ln(Y)*X

yp_exp

-0.0449973659
-0.1165338163
-0.1839228382
-0.3326794384
-0.5603660693
-0.6180397081
-0.9728610834
-0.9942522733
-1.184170177
-1.4188175528
-2.2633643798

-0.0022498683
-0.0128187198
-0.0275884257
-0.1031306259
-0.2577683919
-0.3213806482
-0.6810027584
-0.7357466823
-0.9710195452
-1.3904412018
-2.6481363244

1.0835294613
0.9753409284
0.9092854996
0.6868715543
0.528037593
0.4753139574
0.3466791645
0.323200153
0.2809048195
0.2121946628
0.1520784174

-8.6900047025

-7.1512831918

Sistema para exponencial


11

6.01

-8.6900047025

6.01

4.6545

-7.1512831918

Matriz Inversa

0.3086661273

-0.3985569718

-0.3985569718

0.7294719949

Resolviendo
a
0.1678836754
-1.7531988572
A

1.182799014

-1.7531988572

Sumatorias potencial
S^2

xy_exp

ln(X)

ln(X)^2 ln(X)*ln( yp_pot

Y)
0.0162637635
0.0072830741
0.0059730484
0.0009077232
0.0018457684
0.004055912
0.0009809947
0.0021902257
0.0006297681
0.0008883581
0.0023115342
0.0433301705

0.0693863343

-2.9957322736
-2.2072749132
-1.8971199849
-1.1711829815
-0.7765287895
-0.6539264674
-0.3566749439
-0.3011050928
-0.1984509387
-0.0202027073
0.1570037488

8.9744118548
4.8720625424
3.5990642371
1.3716695762
0.6029969609
0.4276198248
0.1272170156
0.0906642769
0.0393827751
0.0004081494
0.0246501771

0.1348000613
0.2572221692
0.348923692
0.3896284965
0.4351403855
0.404152523
0.3469951724
0.299374423
0.2349996832
0.0286639558
-0.3553566926

-10.421195344

20.1301473903

2.5245438693

Sistema para potencial


11

-10.421195344

-8.6900047025

-10.421195344

20.1301473903

2.5245438693

Matriz Inversa

1.4189401686
0.9149667112
0.7699194905
0.5140398571
0.4126810808
0.3854635738
0.3266945812
0.3167462619
0.299158583
0.2709077547
0.2454670415

0.1784108152

0.0923616663

0.0923616663

0.0974915349

Resolviendo
a
-1.3172197446
-0.5565016581
A

0.2678790397

-0.5565016581

S^2

xy_pot

0.2143135997
0.0006233367
0.0038539897
0.0411928196
0.0250648802
0.0235734342
0.002632246
0.0028359606
0.000046805
0.0008356583
0.0200129238
0.3349856537

0.1929264839

Encontrar la curva deseada y evaluarla en los puntos que se especifican


X

-6.0006

-2170.38

-5.7587

-1725.33

-5.5168

-1373.93

-5.2749

-1096.15

-5.033

-876.286

-4.7911

-701.987

-4.5492

-563.564

-4.3073

-453.41

-4.0654

-365.551

-3.8235

-295.297

-3.5816

-238.966

-3.3397

-193.667

-3.0978

-157.131

-2.8559

-127.574

-2.614

-103.599

-2.3721

-84.1062

-2.1302

-68.2333

-1.8883

-55.3029

-1.6464

-44.7834

-1.4045

-36.2574

-1.1626

-29.3974

-0.9207

-23.9454

-0.6788

-19.7003

-0.4369

-16.5027

Proponer Cambio de variable para


y=A*exp(-x)+B*x^2-8.0
Se pasa el 8 al otro lado
y+8=A*exp(-x)+B*x^2
Dividiendo entre x^2
(y+8)/x^2=A*exp(-x)/x^2+B
Si
z=(y+8)/x^2

Ajustar a
y=A*exp(-x)+B*x^2-8.0
Evaluar en
P1
P2
P3
P4

Y(
Y(
X(
X(

-4
0
-100
-10

w=exp(-x)/x^2
a1=A
a0=B
Sustituyendo
Z=a1*W+a0
NP

ND
24

Tolerancia
3
0.0005

W^2

-6.0006

-2170.38

11.2108389257

-60.0540996906

125.6829094175 -673.2568384582

-5.7587

-1725.33

9.5570250407

-51.7851033888

91.3367276278

-494.9115298198

-5.5168

-1373.93

8.176008196

-44.8801152968

66.8471100209

-366.9401905039

-5.2749

-1096.15

7.0215258806

-39.107522582

49.301825692

-274.5944819356

-5.033

-876.286

6.0555035996

-34.2774840829

36.6691238446

-207.5674282488

-4.7911

-701.987

5.2465983837

-30.2329735463

27.5267945999

-158.6202701425

-4.5492

-563.564

4.5690130252

-26.845038749

20.875880024

-122.6553317049

-4.3073

-453.41

4.0015327875

-24.0076538736

16.0122646498

-96.067414127

-4.0654

-365.551

3.5267463136

-21.6337313032

12.4379395608

-76.296682124

-3.8235

-295.297

3.1304211024

-19.6520971317

9.7995362781

-61.5193395665

-3.5816

-238.966

2.8010118982

-18.0050316988

7.8456676539

-50.4323080158

-3.3397

-193.667

2.5292884922

-16.6463801004

6.3973002768

-42.1034976247

-3.0978

-157.131

2.308079136

-15.5403637196

5.3272292979

-35.8683892666

-2.8559

-127.574

2.1321395098

-14.6605669191

4.5460188893

-31.2583739643

-2.614

-103.599

1.9981800067

-13.9907882282

3.9927233391

-27.9561133151

-2.3721

-84.1062

1.9051270942

-13.5255224949

3.6295092451

-25.7678393684

-2.1302

-68.2333

1.8547840162

-13.2738191662

3.4402237466

-24.6200676229

-1.8883

-55.3029

1.8532597085

-13.2661767903

3.4345715472

-24.5856709317

-1.6464

-44.7834

1.914043132

-13.5700408513

3.6635611113

-25.9736434929

-1.4045

-36.2574

2.0650145345

-14.3248047869

4.2642850276

-29.5809300886

-1.1626

-29.3974

2.366192794

-15.8307090868

5.5988683382

-37.4585097646

-0.9207

-23.9454

2.9622290945

-18.8104476917

8.7748012081

-55.7208554324

-0.6788

-19.7003

4.2787353683

-25.3929600887

18.3075763522

-108.6497564381

-0.4369

-16.5027

8.1092216227

-44.5443644362

65.7594753261

-361.2201232553

101.5725196627 -603.8577957039

Sistema lineal
24

101.5725196627

-603.8577957039

ZW

601.4719230748 -3413.6255852126

101.5725196627

601.4719230748

-3413.625585213

Invirtiendo matriz
0.146046842 -0.024663405
-0.024663405 0.005827577
Resolviendo
a
-3.9998931995
-4.9999779527
A

-4.9999779527

-3.9998931995

y=

-4.999977953 *exp(-x)

-3.999893199 *x^2

-8

Evaluar la ecuacin
P1
P2

-2.6
-4 )=
0 )=

Y(
Y(

-102.357671
-344.987838
-12.999978

-100 =

-4.99997795 *exp(-x)

-3.9998932 *x^2

-10 =

-4.99997795 *exp(-x)

-3.9998932 *x^2

0 =

-4.99997795 *exp(-x)

-3.9998932 *x^2

0 =

-4.99997795 *exp(-x)

-3.9998932 *x^2

Para el punto 3
Usando el mtodo de Newton
La derivada es
La primera aproximacin se toma de los valores de la tabla
y'

4.99997795 *exp(-x)

y'

-2.5

6.0884662906

80.9116672101

-2.5752483109

-0.1995086423

86.2740378933

-7.9997864 *x
CC

CCy

0.0292198273

0.1995086423

-2.5729358117

-0.0001968519

-2.5729335255

-1.9211654E-010 86.1036779343

86.1038460182

P3

X(

-100 )=

0.0008987784

0.0001968519

8.88563488E-007 1.921165449E-010

-2.57293353

Para el punto 4
Usando el mtodo de Newton
La primera aproximacin se toma de los valores de la tabla
y'

4.99997795 *exp(-x)

-7.9997864 *x

y'

CC

CCy

-0.4

-6.0990735095

10.6590051571

0.172199133

-2.3276460592

2.8314827785

3.3228920672

2.3276460592

0.9942581887

-3.8040727049

-6.103872236

0.8268064222

3.8040727049

3
4

0.3710353299

-2.0007367622

0.4818792155

1.6796860262

2.0007367622

4.5229819132

-79.8815594621 -36.1286064218

0.9179666563

79.8815594621

No converge
Expresando la ecuacin como
4.999977953 *exp(-x)

-3.999893199 *x^2

Graficando la parabola y la exponencial en la misma grafica

Graficaremos a partir de -1 por que de los datos de la tabla se puede ver que en -10 se tiene una extr
Inicial

Incremento

-1

0.1

Y_exp

-1
-0.9
-0.8
-0.7
-0.6
-0.5
-0.4
-0.3
-0.2
-0.1
0
0.1
0.2
0.3

13.5913492
12.2979613
11.1276556
10.0687191
9.11055383
8.24357
7.4590906
6.74926428
6.10698686
5.52583022
4.99997795
4.52416714
4.09363571
3.70407477

Y_para

-1.999893199
-1.239913492
-0.559931648
0.040052332
0.560038448
1.0000267
1.360017088
1.640009612
1.840004272
1.960001068
2
1.960001068
1.840004272
1.640009612

0.4
0.5
0.6
0.7
0.8
0.9
1

3.35158545
3.03263993
2.74404608
2.48291557
2.24663491
2.03283933
1.8393891

1.360017088
1.0000267
0.560038448
0.040052332
-0.559931648
-1.239913492
-1.999893199

Como se observa las 2 graficas NO se cortan, por lo cual la ultima ecuacin NO tiene solucin y por lo
Conclusiones
En los puntos 1 y 3 se tienen interpolaciones y no hay problema en lograr la convergencia.
En los puntos 2 y 4 se tienen extrapolaciones.
En el punto 2 se logro la convergencia aunque tardo mas iteraciones que el punto 1.

En el punto 4 la ecuacin no tiene raices, por lo cual al extrapolar no neceriamente tendremos una so
Dentro del rango de la tabla original la curva ajustada representa bien los datos.
Fuera de este rango no necesariamente se tendra una representacin valida de la curva.

)
)
)
)

Yp

S^2

xy

-2170.3706730137 8.69926737E-005
-1725.3201940673 9.61563166E-005
-1373.9190014895 0.0001209672
-1096.1456931748 1.85487436E-005
-876.2807718455

2.73335998E-005

-701.9823149254

2.19499238E-005

-563.5602508946

1.40557916E-005

-453.4065684821

1.17753152E-005

-365.5479541394

9.27726650E-006

-295.2945522028

5.99171109E-006

-238.964194313

3.26050551E-006

-193.6658823676

1.24910228E-006

-157.1297934759

1.45570052E-006

-127.5738109529

3.57387950E-008

-103.598733173

7.11966645E-008

-84.1059984053

4.06404231E-008

-68.2330877293

4.50588683E-008

-55.302807622

8.53370390E-009

-44.7834699587

4.89421766E-009

-36.25762795

0.000000052

-29.3975296416

1.68069547E-008

-23.9458456053

1.98564101E-007

-19.700537581

5.64447475E-008

-16.5029783227

7.74635207E-008
0.0004196212

0.0043673436

0.00436734

-8
-8
92
2

Checar CC

Checar Y

#
*

Checar CC

Checar Y

e en -10 se tiene una extrapolacin

16
14
12
10
8
4.999977953 *exp(-x)

2-3.999893199 *x^2

4
2
0
-1.5

-1

-0.5

-2
-4

0.5

1.5

0
-1.5

-1

-0.5

-2

0.5

-4

NO tiene solucin y por lo tanto el punto 4 no se puede evaluar

convergencia.

amente tendremos una solucin.

a de la curva.

1.5

4.999977953 *exp(-x)

2-3.999893199 *x^2