Professional Documents
Culture Documents
Tarea 2 Prob1
Tarea 2 Prob1
mathematica *)
(* CreatedBy='Mathematica 11.3' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 158, 7]
NotebookDataLength[ 18483, 532]
NotebookOptionsPosition[ 16784, 492]
NotebookOutlinePosition[ 17158, 508]
CellTagsIndexPosition[ 17115, 505]
WindowFrame->Normal*)
Cell[CellGroupData[{
Cell["Tarea 2 Problema 1 ", "Title",
CellChangeTimes->{{3.746382449505703*^9, 3.746382519463739*^9}, {
3.746812984769784*^9,
3.746812986432749*^9}},ExpressionUUID->"4c422648-991e-428b-aa83-\
83b3bb41f452"],
Cell[CellGroupData[{
Cell["Datos", "Section",
CellChangeTimes->{{3.746382548821229*^9,
3.7463825670458317`*^9}},ExpressionUUID->"aa12c805-c728-4c20-ac9d-\
2b6dab95074c"],
Cell[BoxData[{
RowBox[{
RowBox[{
RowBox[{"\[Theta]3", "=",
RowBox[{"0", "*", "Degree"}]}], ";"}],
RowBox[{"(*",
RowBox[{"Degree", " ", "=", " ",
FractionBox["\[Pi]", "180"]}], "*)"}]}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"\[Theta]4", "=",
RowBox[{"39.521", "*", "Degree"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"\[Theta]5", "=",
RowBox[{"9.911", "*", "Degree"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"\[Theta]6", "=",
RowBox[{"135.08", "*", "Degree"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"\[Phi]", "=",
RowBox[{"26.8", "*", "Degree"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"x2", "=", "46.45"}], ";"}],
"\[IndentingNewLine]"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"r3", "=", "21"}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"r4", "=", "33"}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"r4p", "=", "47"}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"r5", "=", "73"}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"r6", "=", "29"}], ";"}], "\[IndentingNewLine]"}], "Input",
CellChangeTimes->{{3.7463825914645157`*^9, 3.746382688340807*^9}, {
3.746382718718145*^9, 3.746382852302568*^9}, {3.7463838530024843`*^9,
3.746384011894661*^9}},
CellLabel->"In[1]:=",ExpressionUUID->"c195d9f3-0e00-4700-a278-db909bd069b5"]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[{
RowBox[{"Clear", "[",
RowBox[{
"vx2", ",", "\[Omega]3", ",", "\[Omega]4", ",", "\[Omega]5", ",",
"\[Omega]6"}], "]"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"Clear", "[",
RowBox[{
"ax2", ",", "\[Alpha]3", ",", "\[Alpha]4", ",", "\[Alpha]5", ",",
"\[Alpha]6"}], "]"}], "\[IndentingNewLine]",
RowBox[{"(*", "Posicion", "*)"}]}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"u3", "=",
RowBox[{"{",
RowBox[{
RowBox[{"Cos", "[", "\[Theta]3", "]"}], ",",
RowBox[{"Sin", "[", "\[Theta]3", "]"}], ",", "0"}], "}"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"u4", "=",
RowBox[{"{",
RowBox[{
RowBox[{"Cos", "[", "\[Theta]4", "]"}], ",",
RowBox[{"Sin", "[", "\[Theta]4", "]"}], ",", "0"}], "}"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"u4p", "=",
RowBox[{"{",
RowBox[{
RowBox[{"Cos", "[",
RowBox[{"\[Theta]4", "+", "\[Phi]"}], "]"}], ",",
RowBox[{"Sin", "[",
RowBox[{"\[Theta]4", "+", "\[Phi]"}], "]"}], ",", "0"}], "}"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"u5", "=",
RowBox[{"{",
RowBox[{
RowBox[{"Cos", "[", "\[Theta]5", "]"}], ",",
RowBox[{"Sin", "[", "\[Theta]5", "]"}], ",", "0"}], "}"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"u6", "=",
RowBox[{"{",
RowBox[{
RowBox[{"Cos", "[", "\[Theta]6", "]"}], ",",
RowBox[{"Sin", "[", "\[Theta]6", "]"}], ",", "0"}], "}"}]}], ";"}],
"\[IndentingNewLine]", "\[IndentingNewLine]"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"R1", "=",
RowBox[{"{",
RowBox[{"32.5", ",", "10", ",", "0"}], "}"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"R2", "=",
RowBox[{"{",
RowBox[{"x2", ",", "21", ",", "0"}], "}"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"R3", "=",
RowBox[{"r3", "*", "u3"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"R4", "=",
RowBox[{"r4", "*", "u4"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"R4p", "=",
RowBox[{"r4p", "*", "u4p"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"R5", "=",
RowBox[{"r5", "*", "u5"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"R6", "=",
RowBox[{"r6", "*", "u6"}]}], ";"}], "\[IndentingNewLine]",
"\[IndentingNewLine]",
RowBox[{"(*", "Velocidad", "*)"}]}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"Omega3", "=",
RowBox[{"{",
RowBox[{"0", ",", "0", ",", "\[Omega]3"}], "}"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"Omega4", "=",
RowBox[{"{",
RowBox[{"0", ",", "0", ",", "\[Omega]4"}], "}"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"Omega5", "=",
RowBox[{"{",
RowBox[{"0", ",", "0", ",", "\[Omega]5"}], "}"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"Omega6", "=",
RowBox[{"{",
RowBox[{"0", ",", "0", ",", "\[Omega]6"}], "}"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"V1", "=",
RowBox[{"{",
RowBox[{"0", ",", "0", ",", "0"}], "}"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"V2", "=",
RowBox[{"{",
RowBox[{"vx2", ",", "0", ",", "0"}], "}"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"V3", "=",
RowBox[{"Omega3", "\[Cross]", "R3"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"V4", "=",
RowBox[{"Omega4", "\[Cross]", "R4"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"V4p", "=",
RowBox[{"Omega4", "\[Cross]", "R4p"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"V5", "=",
RowBox[{"Omega5", "\[Cross]", "R5"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"V6", "=",
RowBox[{"Omega6", "\[Cross]", "R6"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{"(*", "Aceleracion", "*)"}]}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"Alfa3", "=",
RowBox[{"{",
RowBox[{"0", ",", "0", ",", "\[Alpha]3"}], "}"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"Alfa4", "=",
RowBox[{"{",
RowBox[{"0", ",", "0", ",", "\[Alpha]4"}], "}"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"Alfa5", "=",
RowBox[{"{",
RowBox[{"0", ",", "0", ",", "\[Alpha]5"}], "}"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"Alfa6", "=",
RowBox[{"{",
RowBox[{"0", ",", "0", ",", "\[Alpha]6"}], "}"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"A1", "=",
RowBox[{"{",
RowBox[{"0", ",", "0", ",", "0"}], "}"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"A2", "=",
RowBox[{"{",
RowBox[{"ax2", ",", "0", ",", "0"}], "}"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"A3", "=",
RowBox[{
RowBox[{"Alfa3", "\[Cross]", "R3"}], "-",
RowBox[{
SuperscriptBox["\[Omega]3", "2"], "*", "R3"}]}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"A4", "=",
RowBox[{
RowBox[{"Alfa4", "\[Cross]", "R4"}], "-",
RowBox[{
SuperscriptBox["\[Omega]4", "2"], "*", "R4"}]}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"A4p", "=",
RowBox[{
RowBox[{"Alfa4", "\[Cross]", "R4p"}], "-",
RowBox[{
SuperscriptBox["\[Omega]4", "2"], "*", "R4p"}]}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"A5", "=",
RowBox[{
RowBox[{"Alfa5", "\[Cross]", "R5"}], "-",
RowBox[{
SuperscriptBox["\[Omega]5", "2"], "*", "R5"}]}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"A6", "=",
RowBox[{
RowBox[{"Alfa6", "\[Cross]", "R6"}], "-",
RowBox[{
SuperscriptBox["\[Omega]6", "2"], "*", "R6"}]}]}], ";"}],
"\[IndentingNewLine]"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"Pos1", "=",
RowBox[{"R6", "+", "R5", "-", "R4p", "+", "R1"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"Pos2", "=",
RowBox[{"R4", "+", "R3", "-", "R2"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"Vel1", "=",
RowBox[{"V6", "+", "V5", "-", "V4p", "+", "V1"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"Vel2", "=",
RowBox[{"V4", "+", "V3", "-", "V2"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"Acel1", "=",
RowBox[{"A6", "+", "A5", "-", "A4p", "+", "A1"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"Acel2", "=",
RowBox[{"A4", "+", "A3", "-", "A2"}]}], ";"}],
"\[IndentingNewLine]"}], "\[IndentingNewLine]"}], "Input",
CellChangeTimes->{{3.746383031642783*^9, 3.746383115644644*^9}, {
3.746383217430155*^9, 3.7463832477779303`*^9}, {3.7463832787566032`*^9,
3.746383362302671*^9}, {3.746383414908451*^9, 3.746383577472254*^9}, {
3.746383635171267*^9, 3.74638371826335*^9}, {3.746383748958177*^9,
3.746383789908258*^9}, {3.746383825968932*^9, 3.746383828035596*^9}, {
3.746384041964508*^9, 3.746384097351892*^9}, {3.746384135947158*^9,
3.7463841732483797`*^9}, {3.746384216132999*^9, 3.746384312906548*^9}, {
3.746384379972036*^9, 3.7463844827986183`*^9}, {3.746384537624352*^9,
3.7463847167690687`*^9}, {3.7463850401847963`*^9,
3.7463850725626097`*^9}, {3.746385116029058*^9, 3.7463851172703876`*^9}, {
3.746385155447616*^9, 3.746385174277536*^9}, {3.746385215540366*^9,
3.7463852319422903`*^9}, {3.7463852794253893`*^9, 3.7463855668197823`*^9},
3.746385798046954*^9, {3.746385862498275*^9, 3.7463858891964827`*^9}, {
3.7463859262283773`*^9, 3.7463859697408113`*^9}, {3.746386030449692*^9,
3.746386194558112*^9}, {3.7468132108500957`*^9, 3.746813230564818*^9}, {
3.746825406466078*^9, 3.746825423824501*^9}, {3.746825766933848*^9,
3.746825768785767*^9}, {3.7468265297019653`*^9, 3.746826531414654*^9}},
CellLabel->
"In[227]:=",ExpressionUUID->"957bf6e7-1115-4ffe-9be2-4cb1ad8b6327"]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{
RowBox[{"MatrixForm", "[", "Vel1", "]"}], ";"}]], "Input",
CellChangeTimes->{
3.7468254420023317`*^9},ExpressionUUID->"714e6296-13a4-4f3e-806f-\
46fd5e78643f"],
Cell[BoxData[
RowBox[{
RowBox[{"MatrixForm", "[", "Vel2", "]"}], ";"}]], "Input",
CellChangeTimes->{{3.746825414161789*^9,
3.746825440180936*^9}},ExpressionUUID->"86a4d4e7-30d0-4aa0-80fa-\
0c10b3b65fe8"],
Cell[CellGroupData[{
Cell[BoxData[{
RowBox[{"Clear", "[",
RowBox[{
"vx2", ",", "\[Omega]3", ",", "\[Omega]4", ",", "\[Omega]5", ",",
"\[Omega]6"}], "]"}], "\[IndentingNewLine]",
RowBox[{"Clear", "[",
RowBox[{
"ax2", ",", "\[Alpha]3", ",", "\[Alpha]4", ",", "\[Alpha]5", ",",
"\[Alpha]6"}], "]"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"\[Omega]6", "=", "1"}], ";"}], "\[IndentingNewLine]",
RowBox[{"SolVel", "=",
RowBox[{
RowBox[{"Solve", "[",
RowBox[{
RowBox[{"{", "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"Vel1", "[",
RowBox[{"[", "1", "]"}], "]"}], "\[Equal]", "0"}], ",",
"\[IndentingNewLine]",
RowBox[{
RowBox[{"Vel1", "[",
RowBox[{"[", "2", "]"}], "]"}], "\[Equal]", "0"}], ",",
"\[IndentingNewLine]",
RowBox[{
RowBox[{"Vel2", "[",
RowBox[{"[", "1", "]"}], "]"}], "\[Equal]", "0"}], ",",
"\[IndentingNewLine]",
RowBox[{
RowBox[{"Vel2", "[",
RowBox[{"[", "2", "]"}], "]"}], "\[Equal]", "0"}]}], "}"}], ",",
"\[IndentingNewLine]",
RowBox[{"{",
RowBox[{"vx2", ",", "\[Omega]3", ",", "\[Omega]4", ",", "\[Omega]5"}],
"}"}]}], "]"}], "//", "Flatten"}]}]}], "Input",
CellChangeTimes->{{3.746813086720088*^9, 3.7468131511333647`*^9}, {
3.746813245230528*^9, 3.746813434247199*^9}, {3.746815319462791*^9,
3.746815322930311*^9}},
CellLabel->
"In[269]:=",ExpressionUUID->"ab64989a-674b-417b-8b81-aec166ba22b2"],
Cell[BoxData[
RowBox[{"{",
RowBox[{
RowBox[{"vx2", "\[Rule]",
RowBox[{"-", "12.715342941343337`"}]}], ",",
RowBox[{"\[Omega]3", "\[Rule]",
RowBox[{"-", "0.7339728971884781`"}]}], ",",
RowBox[{"\[Omega]4", "\[Rule]", "0.6054950364148477`"}], ",",
RowBox[{"\[Omega]5", "\[Rule]", "0.44449507296874435`"}]}],
"}"}]], "Output",
CellChangeTimes->{
3.746813154499085*^9, 3.746813268277614*^9, {3.746815310980659*^9,
3.746815328341977*^9}, 3.7468253269910927`*^9, 3.746826554326861*^9},
CellLabel->
"Out[272]=",ExpressionUUID->"c2981353-b95a-4561-b728-ee623a2d9046"]
}, Open ]]
}, Open ]],
Cell[CellGroupData[{
Cell[CellGroupData[{
Cell[BoxData[{
RowBox[{
RowBox[{
RowBox[{"MatrixForm", "[", "Acel1", "]"}], "/.", "SolVel"}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"MatrixForm", "[", "Acel2", "]"}], "/.", "SolVel"}],
";"}], "\[IndentingNewLine]",
RowBox[{"Clear", "[",
RowBox[{
"vx2", ",", "\[Omega]3", ",", "\[Omega]4", ",", "\[Omega]5", ",",
"\[Omega]6"}], "]"}], "\[IndentingNewLine]",
RowBox[{"Clear", "[",
RowBox[{
"ax2", ",", "\[Alpha]3", ",", "\[Alpha]4", ",", "\[Alpha]5", ",",
"\[Alpha]6"}], "]"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"\[Omega]6", "=", "1"}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"\[Alpha]6", "=", "0"}], ";"}], "\[IndentingNewLine]",
RowBox[{"SolAcel", "=",
RowBox[{
RowBox[{"Solve", "[",
RowBox[{
RowBox[{
RowBox[{"{", "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"Acel1", "[",
RowBox[{"[", "1", "]"}], "]"}], "\[Equal]", "0"}], ",",
"\[IndentingNewLine]",
RowBox[{
RowBox[{"Acel1", "[",
RowBox[{"[", "2", "]"}], "]"}], "\[Equal]", "0"}], ",",
"\[IndentingNewLine]",
RowBox[{
RowBox[{"Acel2", "[",
RowBox[{"[", "1", "]"}], "]"}], "\[Equal]", "0"}], ",",
"\[IndentingNewLine]",
RowBox[{
RowBox[{"Acel2", "[",
RowBox[{"[", "2", "]"}], "]"}], "\[Equal]", "0"}]}], "}"}], "/.",
"SolVel"}], ",", "\[IndentingNewLine]",
RowBox[{"{",
RowBox[{"ax2", ",", "\[Alpha]3", ",", "\[Alpha]4", ",", "\[Alpha]5"}],
"}"}]}], "]"}], "//", "Flatten"}]}]}], "Input",
CellChangeTimes->{{3.746813086720088*^9, 3.7468131511333647`*^9}, {
3.746813245230528*^9, 3.746813434247199*^9}, {3.746815319462791*^9,
3.746815322930311*^9}, {3.746816277900064*^9, 3.74681632220514*^9}, {
3.7468163553849154`*^9, 3.74681637909229*^9}, 3.746825465143653*^9, {
3.746825839618413*^9, 3.746825846431192*^9}, {3.746825881315714*^9,
3.746825897806593*^9}, {3.7468259988445473`*^9, 3.746826048366993*^9}, {
3.746826328013403*^9, 3.746826331113556*^9}, {3.746826399260405*^9,
3.7468264596759367`*^9}, {3.746826648755823*^9, 3.7468266754755583`*^9}},
CellLabel->
"In[287]:=",ExpressionUUID->"c7d517d6-2a5f-436f-b2ef-441ef956b9b8"],
Cell[BoxData[
RowBox[{"{",
RowBox[{
RowBox[{"ax2", "\[Rule]",
RowBox[{"-", "14.309190504742975`"}]}], ",",
RowBox[{"\[Alpha]3", "\[Rule]", "0.7323931854948893`"}], ",",
RowBox[{"\[Alpha]4", "\[Rule]",
RowBox[{"-", "0.3017443894144844`"}]}], ",",
RowBox[{"\[Alpha]5", "\[Rule]", "0.02063152034699877`"}]}],
"}"}]], "Output",
CellChangeTimes->{
3.746813154499085*^9, 3.746813268277614*^9, {3.746815310980659*^9,
3.746815328341977*^9}, 3.746816324863027*^9, 3.7468254691621103`*^9,
3.746825850874778*^9, {3.746825883057913*^9, 3.746825898913271*^9},
3.7468260498800793`*^9, 3.74682633242878*^9, {3.746826404465049*^9,
3.746826460512025*^9}, 3.746826537910858*^9, 3.746826618216522*^9, {
3.7468266511508102`*^9, 3.746826676523396*^9}},
CellLabel->
"Out[293]=",ExpressionUUID->"d2cb1067-ff26-44d8-88eb-3d71d2d3e8fe"]
}, Open ]]
}, Open ]]
}, Open ]]
},
WindowToolbars->{"RulerBar", "EditBar"},
WindowSize->{1321, 713},
WindowMargins->{{0, Automatic}, {0, Automatic}},
FrontEndVersion->"11.3 for Linux x86 (64-bit) (March 6, 2018)",
StyleDefinitions->"Default.nb"
]
(* End of Notebook Content *)