Advertisement
ellenlee218

polar/cartesian comparison

Mar 28th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. Manipulate[
  2. GraphicsColumn[{PolarPlot[1 Sin[t] + k, {t, 0, 2 Pi},
  3. PlotRange -> {{-3, 3}, {-3, 3}},
  4. Epilog -> {Red, PointSize -> Large,
  5. Point[{(1 Sin[theta] + k) Cos[theta],
  6. (1 Sin[theta] + k) Sin[theta]}]}],
  7. Plot[1 Sin[t] + k, {t, 0, 2 Pi},
  8. PlotRange -> {-2, 2},
  9. Epilog -> {Red, PointSize -> Large,
  10. Point[{theta, 1 Sin[theta] + k}]}]},
  11. ImageSize -> 400],
  12. {{k, 0}, -1, 1}, {theta, 0, 2 Pi}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement