Professional Documents
Culture Documents
k=8
x0 = 0.1
v0 = 0.5
DSolve[m x ''[t] + k x[t] ⩵ 0, x[t], t]
Out[55]= 2
Out[56]= 8
Out[57]= 0.1
Out[58]= 0.5
In[63]:= Sol1 = DSolve[{m x ''[t] + k x[t] ⩵ 0, x[0] ⩵ x0, x '[0] ⩵ v0}, x[t], t]
xsol = x[t] /. Sol1[[1]] // Expand
Out[63]= {{x[t] → 0.1 Cos[2 t] + 0.25 Sin[2 t]}}
0.2
0.1
Out[65]=
t[seg]
2 4 6 8 10
-0.1
-0.2
Desplazamiento
x[m]
0.3
0.2
0.1
Out[66]=
t[seg]
5 10 15 20
-0.1
-0.2
In[67]:= xsol[[1]]
xsol[[2]]
Out[67]= 0.1 Cos[2 t]
Out[73]= 0.269258
Out[74]= 0.380506
Out[75]= 2
Tarea 2 Movimiento armónico simple.nb 3
Out[77]= - 0.269258
In[78]:= Plot[{xsol, Envolvente1, Envolvente2}, {t, 0, 20}, PlotStyle → {Red, Dashed, Dashed},
PlotRange → All, PlotLabel → "Desplazamiento", AxesLabel → {"t[seg]", "x[m]"}]
Desplazamiento
x[m]
0.3
0.2
0.1
Out[78]=
t[seg]
5 10 15 20
-0.1
-0.2
0.2
0.1
Out[80]=
2 4 6 8 10
-0.1
-0.2