punto 1
punto 1
punto 1
(* Definimos las constantes y las masas del problema con sus unidades explícitas *)
k1 = 4; (* N/m *)
k2 = 6; (* N/m *)
m1 = 1; (* kg *)
m2 = 1; (* kg *)
f[t_] := 30 Cos[t]; (* N *)
Clearx, y;
Print"Ecuaciones simplificadas:";
eq1Simplified // TraditionalForm
eq2Simplified // TraditionalForm
laplaceEq1 = LaplaceTransformeq1Reorganized, t, s /.
LaplaceTransformx[t], t, s → X[s], LaplaceTransformy[t], t, s → Y[s],
x[0] → 0, y[0] → 0, Derivative[1][x][0] → 0, Derivative[1][y][0] → 0;
laplaceEq2 = LaplaceTransformeq2Reorganized, t, s /.
LaplaceTransformx[t], t, s → X[s], LaplaceTransformy[t], t, s → Y[s],
x[0] → 0, y[0] → 0, Derivative[1][x][0] → 0, Derivative[1][y][0] → 0;
laplaceEq1 // TraditionalForm
laplaceEq2 // TraditionalForm
xSol[t] // TraditionalForm
ySol[t] // TraditionalForm
xSol[t] // TraditionalForm
Print"y(t) =";
ySol[t] // TraditionalForm
3
Ecuaciones simplificadas:
Out[131]//TraditionalForm=
′′
x (t ) 6 (y (t ) - x (t )) - 4 x (t )
Out[132]//TraditionalForm=
′′
y (t ) 30 cos(t ) - 6 (y (t ) - x (t ))
s 2 X (s ) 6 Y (s ) - 10 X (s )
Out[143]//TraditionalForm=
30 s
s 2 Y (s ) + 6 X (s ) - 6 Y (s )
s2 + 1
180 s 30 s s 2 + 10
X (s ) → , Y (s ) →
s 6 + 17 s 4 + 40 s 2 + 24 s 6 + 17 s 4 + 40 s 2 + 24
s 6 + 17 s 4 + 40 s 2 + 24
Out[151]//TraditionalForm=
30 s s 2 + 10
s 6 + 17 s 4 + 40 s 2 + 24
Out[155]//TraditionalForm=
cos(t )
180 +
9
18 4- 10 - 4+ 10 4- 10 + 4+ 10
Out[156]//TraditionalForm=
cos(t )
180 +
9
18 4- 10 - 4+ 10 4- 10 + 4+ 10
y(t) =
Out[161]//TraditionalForm=