3 Sin 3 Cos 3 Sin - 3 Cos

You might also like

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

7.2.

20
In[1]:= wf[x_, t_] = 3 * Sin[Pi * x - Pi * t / 2];

In[2]:= tlist = {0, 1, 2, 3}; xlist = {0, 1 / 2, 1, 3 / 2, 2};


colorlist = {Dashed, Thin, Thick, Dotted};
plotlist = {};
Plotlist = {};

In[3]:= For[i = 1, i < 5, i ++, AppendTo[Plotlist, Plot[wf[x, tlist[[i]]],


{x, - 2, 2}, PlotLegends wf[xlist[[i]], t], PlotStyle colorlist[[i]]]]];
Show[Plotlist, PlotRange All]

1 - 3 Sin 2t
3 Cos 2t
Out[3]=
-2 -1 1 2 3 Sin 2t
-1 - 3 Cos 2t

-2

-3

In[4]:= For[i = 1, i < 5, i ++, AppendTo[plotlist, Plot[wf[xlist[[i]], t],


{t, - 4, 4}, PlotLegends wf[xlist[[i]], t], PlotStyle colorlist[[i]]]]];
Show[plotlist, PlotRange All]

1 - 3 Sin 2t
3 Cos 2t
Out[4]=
-4 -2 2 4 3 Sin 2t
-1 - 3 Cos 2t

-2

-3
2 math.nb

7.3.8
x
In[5]:= g[t_, x_] = (A + B * Sin[w * t]) * Sinwc * t - * wc
v
wc x
Out[5]= (A + B Sin[t w]) Sint wc -
v

In[6]:= A = 3; B = 1; w = 2 * Pi * 1; wc = 2 * Pi * 20;

In[7]:= p = FunctionPeriod[g[t, 0], t];

In[8]:= Plot[g[t, 0], {t, - p, p}, PlotRange All]


4

Out[8]=
-1.0 -0.5 0.5 1.0

-2

-4

You might also like