Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

In[352]:=

In[353]:=

solx = NDSolve@8
x1 '@tD - 10 x1 @tD + 10 x2 @tD,
x2 '@tD 16 x1 @tD - x1 @tD x3 @tD,
x3 '@tD - x3 @tD + x1 @tD * x2 @tD,
x1 @0D 0.1,
x2 @0D 0.1,
x3 @0D 15
<,
8x1 @tD, x2 @tD, x3 @tD<, 8t, 0, 100<D;

Plot@Evaluate@x1 @tD . solxD, 8t, 0, 5<, PlotRange AllD


10

Out[353]=

-5

In[320]:=

In[322]:=

d1 = Table@8t, Evaluate@x1 @tD . solxD<, 8t, 0, 5<D;


x1@t_D := InterpolatingPolynomial@d1, tD Simplify
Plot@x1@tD, 8t, 0, 4<, PlotRange AllD
5

Out[322]=

-5

LuLike.nb

In[323]:=

Plot@Evaluate@x2 @tD . solxD, 8t, 0, 5<, PlotRange AllD


10

Out[323]=

-5

In[324]:=

In[332]:=

d2 = Table@8t, Evaluate@x2 @tD . solxD<, 8t, 0, 5<D;


x2@t_D := InterpolatingPolynomial@d2, tD Simplify
Plot@x2@tD, 8t, 0, 4<, PlotRange AllD
10

5
Out[332]=

-5

In[354]:=

Plot@Evaluate@x3 @tD . solxD, 8t, 0, 5<, PlotRange AllD


25

20

Out[354]=

15

10

In[364]:=

d3 = Table@8t, Evaluate@x3 @tD . solxD<, 8t, 0, 5<D;


x3@t_D := InterpolatingPolynomial@d3, tD Simplify

LuLike.nb

In[366]:=

Plot@x3@tD, 8t, 0, 5<, PlotRange AllD


20

18

16

Out[366]= 14

12

10

In[368]:=

Plot@8x1@tD, x2@tD, x3@tD<, 8t, 0, 5<, PlotRange AllD


20

15

10

Out[368]=

-5

-10

In[369]:=

In[72]:=

In[16]:=

In[17]:=

In[18]:=

Plot@Evaluate@8x1 @tD, x2 @tD, x3 @tD< . solxD, 8t, 0, 3<, AspectRatio 1,


PlotRange 8- 10, 25<, PlotLegends 8"x1 @tD", "x2 @tD", "x3 @tD"<D;
ParametricPlot3D@8x1 @tD, x2 @tD, x3 @tD< . solx, 8t, 0, 80<D;
ParametricPlot@8x1 @tD, x2 @tD< . solx, 8t, 0, 60<D;
ParametricPlot@8x1 @tD, x3 @tD< . solx, 8t, 0, 60<D;
ParametricPlot@8x2 @tD, x3 @tD< . solx, 8t, 0, 60<D;

d = Table@8t, x1 @tD . solx<, 8t, 0, 5, 0.5<D TableForm

LuLike.nb

In[195]:=

ListPlot@Table@8t, Evaluate@x1 @tD . solxD<, 8t, 20<DD


1.0

0.5

Out[195]=

-1.0

-0.5

0.5

1.0

-0.5

-1.0

In[134]:=
Out[134]=

In[242]:=

x1@tD
0.1 - 5863.43 t + 19 177.2 t2 - 26 644.1 t3 + 21 195.4 t4 - 10 916.5 t5 + 3888.07 t6 995.898 t7 + 187.846 t8 - 26.4303 t9 + 2.7853 t10 - 0.218814 t11 + 0.0126229 t12 0.000518979 t13 + 0.0000143898 t14 - 2.41093 10-7 t15 + 1.84334 10-9 t16
Plot@x1@tD, 8t, 0, 2<, PlotRange AllD
0.5

1.0

1.5

2.0

-1 1026

Out[242]= -2 1026

-3 1026

-4 1026

In[36]:=
Out[36]=

In[38]:=
Out[38]=

x2@tD
0.1 + 638.811 t - 1713.75 t2 + 1891.51 t3 - 1156.68 t4 + 443.92 t5 - 114.844 t6 +
21.0683 t7 - 2.86608 t8 + 0.302409 t9 - 0.0256927 t10 + 0.00176887 t11 0.0000944944 t12 + 3.57955 10-6 t13 - 8.33639 10-8 t14 + 8.82635 10-10 t15
x3@tD
0.1 + 638.811 t - 1713.75 t2 + 1891.51 t3 - 1156.68 t4 + 443.92 t5 - 114.844 t6 +
21.0683 t7 - 2.86608 t8 + 0.302409 t9 - 0.0256927 t10 + 0.00176887 t11 0.0000944944 t12 + 3.57955 10-6 t13 - 8.33639 10-8 t14 + 8.82635 10-10 t15
Controller thetaaHat

- 214 e2 @tD

LuLike.nb

In[370]:=

sole = NDSolve@8
e1 '@tD - 10 e1 @tD + 10 e2 @tD + ea @tD * He2 @tD - e1 @tD + x2@tD - x1@tDL,
e2 '@tD
16 e1 @tD - He1 @tD e3 @tD + x1@tD e3 @tD + x3@tD e1 @tDL + ec @tD * He1 @tD + x1@tDL,
e3 '@tD - e3 @tD + e1 @tD e2 @tD + x1@tD e2 @tD + x2@tD e1 @tD - eb @tD He3 @tD + x3@tDL,
ea '@tD - 3510 ea @tD - 35 He1 @tD e2 @tD - He1 @tDL ^ 2L,
eb '@tD - 2701 eb @tD + e3 @tD ^ 2,
ec '@tD - 9 ec @tD - e1 @tD * e2 @tD,
e1 @0D - 0.1,
e2 @0D - 0.1,
e3 @0D - 15,

Out[370]=

In[371]:=

ea @0D 0 - 10,
eb @0D 8 - 1,
ec @0D 10 - 16
<,
8e1 @tD, e2 @tD, e3 @tD, ea @tD, eb @tD, ec @tD<, 8t, 0, 6<D

88e1 @tD InterpolatingFunction@880., 6.<<, <>D@tD,


e2 @tD InterpolatingFunction@880., 6.<<, <>D@tD,
e3 @tD InterpolatingFunction@880., 6.<<, <>D@tD,
ea @tD InterpolatingFunction@880., 6.<<, <>D@tD,
eb @tD InterpolatingFunction@880., 6.<<, <>D@tD,
ec @tD InterpolatingFunction@880., 6.<<, <>D@tD<<

Plot@e1 @tD . sole, 8t, 0, 4<, AspectRatio 0.3, PlotRange AllD


5

1
Out[371]=

-5
-10
-15

You might also like