Group Abstract Group Abstract

Message Boards Message Boards

0
|
662 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Does this plot in cylindrical coordinates look correct?

Posted 4 months ago
POSTED BY: Chris Cantrell
3 Replies
Posted 4 months ago

Fixed some stuff. Due to the t variable being a polar angle in spherical coordinates, I've changed the range to only {t,0,Pi}.

Charge density

POSTED BY: Chris Cantrell

It is correct, but the choice of parameters makes it misleading as to the behaviour of the function. I would do it like this:

ParametricPlot3D[{r*Cos[t], r*Sin[t], (1 - 2 r)*Sin[t]/r^2},
 {r, 0, 3}, {t, 0, 2 Pi},
 PlotRange -> {3 {-1, 1}, 3 {-1, 1}, 3/2 {-1, 1}},
 BoxRatios -> 1]
POSTED BY: Gianluca Gorni
Posted 4 months ago

You're right, your way of doing it does show a lot more features. The problem I was solving included a constant R term as a value of r, and since I can't plot a function with an undefined constant, I just set R=1. Since the function in the problem doesn't extend past R, I just decided not to plot past r=R=1. I like what you did with the PlotRange, though, so I'll keep that in mind going forward.

POSTED BY: Chris Cantrell
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard