Message Boards Message Boards

Plot the following dipole function with GradientFieldPlot?

I am using Mathematica 7 and just starting on physics problems on Mathematica. on using the function GradientFieldPlot I'm getting this complication.

enter image description here

Why isn't is plotting for the dipole function but it is working fine with the next one (Sin[x y])? And it's not even an error. What does it mean when mathematics just keeps repeating the input without solving it?

enter image description here

POSTED BY: Waqar ahmed

Hi,

it would be really great if you could post code instead of images. If anyone wants to help, they have to retype everything.

Also it is much more difficult to spot mistakes, like the curley brackets you use for x-1 and x+1. If you correct that

<< VectorFieldPlots`

GradientFieldPlot[1/Sqrt[(x - 1)^2 + y^2] - 1/Sqrt[(x + 1)^2 + y^2], {x, -2, 2}, {y, -2, 2}, PlotPoints -> 20]

should work.

enter image description here

Best wishes, Marco

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

Group Abstract Group Abstract