Вы находитесь на странице: 1из 6

Lauren Griffith

MATH242042L
Lab 12

----Question 1-----
In[2]:= PolarPlotExp- theta  7, {theta, 0, 7 * Pi}

0.8

0.6

0.4

0.2
In[169]:=

-0.5 0.5 1.0

-0.2

-0.4

0.8

0.6

0.4

0.2
Out[169]=

-0.5 0.5 1.0

-0.2

-0.4

---Question 2---

Printed by Wolfram Mathematica Student Edition


2 242Lab12.nb

In[170]:= PolarPlottheta 2 - theta * 3 - theta, {theta, 0, Pi}


x[theta_] = theta 2 - theta * 3 - theta * Cos[theta];
y[theta_] = theta 2 - theta * 3 - theta * Sin[theta];
ParametricPlot[{x[theta], y[theta]}, {theta, 0, Pi}]
Manipulate[ParametricPlot[{x[theta], y[theta]}, {theta, 0, tstop},
PlotRange → {- 0.5, 1.8}], {tstop, 0.1, Pi}]

1.5

1.0

Out[170]=

0.5

-0.5 0.5 1.0 1.5

1.5

1.0

Out[173]=

0.5

-0.5 0.5 1.0 1.5

-0.5

Printed by Wolfram Mathematica Student Edition


242Lab12.nb 3

tstop

1.5

1.0

Out[174]=

0.5

-0.5 0.5 1.0 1.5

-0.5

---Question 3---
In[165]:= g[theta_] = theta;
PolarPlot[g[theta], {theta, 0, 2 Pi}]
Integrate[Sqrt[g[theta] ^ 2 + g '[theta] ^ 2], {theta, 0, 2 Pi}] // N
1  2 * Integrate[g[theta] ^ 2, {theta, 0, 2 Pi}] // N

-2 2 4 6

-1
Out[166]=

-2

-3

-4

Out[167]= 21.2563

Out[168]= 41.3417

Printed by Wolfram Mathematica Student Edition


4 242Lab12.nb

---Bonus Question---
In[146]:= ClearAll
a = PolarPlot[10 + Sin[2 * Pi * theta], {theta, 0, 20 * Pi}, PlotStyle → {Green, Line, Thick},
Axes → False];
Show[a]

x[theta_] = 10 + Sin[2 * Pi * theta] * Cos[theta];


y[theta_] = 10 + Sin[2 * Pi * theta] * Sin[theta];
b = ParametricPlot[{x[theta], y[theta]},
{theta, 0, 20 * Pi}, PlotStyle → {Green, Line, Thick}, Axes -> False];
Show[b]

f[theta_, n_] := TableSin[5 * theta] * Cos[theta] + 10 * Cos2 * Pi * k  n,


Sin[5 * theta] * Sin[theta] + 10 * Sin2 * Pi * k  n, {k, 0, n - 1}
c = ParametricPlot[f[theta, 10], {theta, 0, 20 * Pi},
PlotStyle → {Red, Line, Thick}, Axes → False];
Show[c]
Show[b, c]

Out[146]= ClearAll

Out[148]=

Printed by Wolfram Mathematica Student Edition


242Lab12.nb 5

Out[152]=

Out[155]=

Printed by Wolfram Mathematica Student Edition


6 242Lab12.nb

Out[156]=

Printed by Wolfram Mathematica Student Edition

Вам также может понравиться