(* 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[ 137788, 2663]
NotebookOptionsPosition[ 135888, 2599]
NotebookOutlinePosition[ 136268, 2615]
CellTagsIndexPosition[ 136225, 2612]
WindowFrame->Normal*)
(* Beginning of Notebook Content *)
Notebook[{
Cell["\<\
Aula 2
18/09/2019
Jo\[ATilde]o Pedro
*** COMANDOS
NRoots
FindRoot
Plot -> par\[AHat]metro AxesOrigin
Plot -> par\[AHat]metro PlotRange\
\>", "Input",
CellChangeTimes->{{3.7778147590388136`*^9, 3.777814779913901*^9}, {
3.77781544416739*^9, 3.7778154818728313`*^9}, {3.777815919970446*^9,
3.777816001930744*^9}, {3.7778234314982157`*^9, 3.7778234424340963`*^9}}],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{
RowBox[{"(*", " ", "NRoots", " ", "*)"}], "\[IndentingNewLine]",
RowBox[{"NRoots", "[",
RowBox[{
RowBox[{
RowBox[{
RowBox[{"x", "^", "3"}], "+",
RowBox[{"x", "^", "2"}], "+", "x"}], "\[Equal]", "0"}], ",", "x"}],
"]"}]}]], "Input",
CellChangeTimes->{{3.7778146714400544`*^9, 3.7778147058154917`*^9}}],
Cell[BoxData[
RowBox[{
RowBox[{"x", "\[Equal]",
RowBox[{
RowBox[{"-", "0.5000000000000001`"}], "-",
RowBox[{"0.8660254037844386`", " ", "\[ImaginaryI]"}]}]}], "||",
RowBox[{"x", "\[Equal]",
RowBox[{
RowBox[{"-", "0.5000000000000001`"}], "+",
RowBox[{"0.8660254037844386`", " ", "\[ImaginaryI]"}]}]}], "||",
RowBox[{"x", "\[Equal]", "0.`"}]}]], "Output",
CellChangeTimes->{{3.7778146938202925`*^9, 3.7778147065535655`*^9}}]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"\[IndentingNewLine]",
RowBox[{"(*", " ",
RowBox[{
"Encontrar", " ", "raiz", " ", "pr\[OAcute]xima", " ", "a", " ", "um", " ",
"ponto"}], " ", "*)"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{
RowBox[{"f", "[", "x_", "]"}], ":=",
RowBox[{
RowBox[{"x", "^", "6"}], "+",
RowBox[{"3",
RowBox[{"x", "^", "5"}]}], "+", "x", "-", "1"}]}], ";"}],
"\[IndentingNewLine]",
RowBox[{"Plot", "[",
RowBox[{
RowBox[{"f", "[", "x", "]"}], ",",
RowBox[{"{",
RowBox[{"x", ",",
RowBox[{"-", "4"}], ",", "1"}], "}"}]}], "]"}], "\[IndentingNewLine]",
RowBox[{"FindRoot", "[",
RowBox[{
RowBox[{
RowBox[{"f", "[", "x", "]"}], " ", "\[Equal]", " ", "0"}], ",", " ",
RowBox[{"{",
RowBox[{"x", ",", "3"}], "}"}]}], "]"}], "\[IndentingNewLine]",
RowBox[{"FindRoot", "[",
RowBox[{
RowBox[{
RowBox[{"f", "[", "x", "]"}], " ", "\[Equal]", " ", "0"}], ",", " ",
RowBox[{"{",
RowBox[{"x", ",",
RowBox[{"-", "4"}]}], "}"}]}], "]"}]}]}]], "Input",
CellChangeTimes->{
3.777814750533963*^9, {3.777815050442316*^9, 3.77781520043635*^9}, {
3.777815325138627*^9, 3.7778153376811075`*^9}, {3.777815388475033*^9,
3.7778153895670395`*^9}}],
Cell[BoxData[
GraphicsBox[{{}, {},
{Hue[0.67, 0.6, 0.6], LineBox[CompressedData["
1:eJwVl3c8le8bxznTKpRZRHZDZJfxHLLOSTIyMksh46uiVJSsJCVRIkpSGQ1K
lCL3RUpZyd7jOGY4Rvb6nd9fz+v9ul739dz357o+1/PcO93OWrnj2NjYfrKz
sf3/WTvDHqaczwUqJ+MNPg6coNh2erV9fcMFfyO6s0ZzT1D2FAib8z3lgsqo
iGLmnhOUJveAA4URXLDT5UHRNXsXivyv3XwbZqy4bs3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