Back to Problems

A single charge potential plot

H.Tahsiri

V[z_,x_]=1/Sqrt[y^2+z^2+x^2]/.y->.01

               1
     ----------------------
                    2    2
     Sqrt[0.0001 + x  + z ]

 

ContourPlot[V[z,x], {x, -1, 1}, {z, -1, 1},ContourShading->False,Contours->15,ContourSmoothing->True,PlotPoints->100,AspectRatio->Automatic];
[Graphics:potentialplotgr2.gif][Graphics:potentialplotgr1.gif]

 

DensityPlot[V[z,x], {x, -1, 1}, {z, -1, 1},PlotPoints->50];
[Graphics:potentialplotgr2.gif][Graphics:potentialplotgr3.gif]

 

Clear[V,x,z,y]

 

V[z_,x_,y_]=1/Sqrt[y^2+z^2+x^2]
[Graphics:potentialplotgr2.gif][Graphics:potentialplotgr4.gif]

 

Plot3D[V[x,z ,.01],
{x,-1,1}, {z,-1,1},PlotPoints->30,PlotRange->All,Boxed->False];
[Graphics:potentialplotgr2.gif][Graphics:potentialplotgr5.gif]

Back to Problems