Equilibria2D - (* Content-type: application/mathematica *)...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: (* Content-type: application/mathematica *) (*** Wolfram Notebook File ***) (* http://www.wolfram.com/nb *) (* CreatedBy='Mathematica 7.0' *) (*CacheID: 234*) (* Internal cache information: NotebookFileLineBreakTest NotebookFileLineBreakTest NotebookDataPosition[ 145, 7] NotebookDataLength[ 17438, 437] NotebookOptionsPosition[ 17036, 418] NotebookOutlinePosition[ 17380, 433] CellTagsIndexPosition[ 17337, 430] WindowFrame->Normal*) (* Beginning of Notebook Content *) Notebook[{ Cell[CellGroupData[{ Cell["\<\ This shows the possible behavior of a linear 2x2 differential system in the phase plane.\ \>", "Section", CellChangeTimes->{{3.466185618859375*^9, 3.466185654796875*^9}}], Cell[CellGroupData[{ Cell[TextData[StyleBox["You can move the red and blue dot.", FontColor->RGBColor[0, 0, 1]]], "Subsection", CellChangeTimes->{{3.466185877234375*^9, 3.4661858834375*^9}}], Cell[BoxData[{ RowBox[{ RowBox[{"SetOptions", "[", RowBox[{ RowBox[{"{", "Plot", "}"}], ",", RowBox[{"FrameTicks", "\[Rule]", "None"}], ",", RowBox[{"BaseStyle", "\[Rule]", RowBox[{"{", RowBox[{"Medium", ",", RowBox[{"FontFamily", "\[Rule]", "\"\<Helvetia\>\""}]}], "}"}]}], ",", RowBox[{"Frame", "\[Rule]", "True"}]}], "]"}], ";"}], "\[IndentingNewLine]", RowBox[{ RowBox[{"SetOptions", "[", RowBox[{ RowBox[{"{", "StreamPlot", "}"}], ",", RowBox[{"FrameTicks", "\[Rule]", "None"}], ",", RowBox[{"BaseStyle", "\[Rule]", RowBox[{"{", RowBox[{"Medium", ",", RowBox[{"FontFamily", "\[Rule]", "\"\<Helvetia\>\""}]}], "}"}]}], ",", RowBox[{"Frame", "\[Rule]", "True"}]}], "]"}], ";"}], "\[IndentingNewLine]", RowBox[{ RowBox[{ RowBox[{"size", "=", "700"}], ";"}], "\[IndentingNewLine]"}], "\[IndentingNewLine]", RowBox[{ RowBox[{ RowBox[{ RowBox[{"A", "[", RowBox[{"p_", ",", "q_"}], "]"}], "=", RowBox[{"{", RowBox[{ RowBox[{"{", RowBox[{ RowBox[{"p", "/", "2"}], ",", RowBox[{ RowBox[{"(", RowBox[{ SuperscriptBox["p", "2"], "-", RowBox[{"4", "q"}]}], ")"}], "/", "3"}]}], "}"}], ",", RowBox[{"{", RowBox[{ RowBox[{"3", "/", "4"}], ",", RowBox[{"p", "/", "2"}]}], "}"}]}], "}"}]}], ";"}], "\[IndentingNewLine]"}], "\[IndentingNewLine]", RowBox[{ RowBox[{ RowBox[{ RowBox[{"{", RowBox[{ RowBox[{"usol", "[", RowBox[{"t_", ",", "p_", ",", "q_", ",", "u0_", ",", "v0_"}], "]"}], ",", RowBox[{"vsol", "[", RowBox[{"t_", ",", "p_", ",", "q_", ",", "u0_", ",", "v0_"}], "]"}]}], "}"}], "=", RowBox[{"Simplify", "[", RowBox[{ RowBox[{"{", RowBox[{ RowBox[{"u", "[", "t", "]"}], ",", RowBox[{"v", "[", "t", "]"}]}], "}"}], "/.", RowBox[{ RowBox[{"DSolve", "[", "\[IndentingNewLine]", RowBox[{ RowBox[{"Join", "[", RowBox[{ RowBox[{"{", RowBox[{ RowBox[{ RowBox[{"u", "[", "0", "]"}], "\[Equal]", "u0"}], ",", RowBox[{ RowBox[{"v", "[", "0", "]"}], "\[Equal]", "v0"}]}], "}"}], ",", RowBox[{"Thread", "[", RowBox[{ RowBox[{"{", RowBox[{ RowBox[{ RowBox[{"u", "'"}], "[", "t", "]"}], ",", RowBox[{ RowBox[{"v", "'"}], "[", "t", "]"}]}], "}"}], "\[Equal]", RowBox[{ RowBox[{"A", "[", RowBox[{"p", ",", "q"}], "]"}], ".", RowBox[{"{", RowBox[{...
View Full Document

This note was uploaded on 10/21/2011 for the course APPLIED MA AMATH 383 taught by Professor Hongqian during the Fall '10 term at University of Washington.

Page1 / 7

Equilibria2D - (* Content-type: application/mathematica *)...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online