MATHEMATICA FEATURED EXAMPLE

Electric Potential and Field of a Dipole

    
Compute the electric field of a dipole from its potential and verify that it is a vacuum solution by computing the divergence:
In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Out[4]=
In[5]:=
Click for copyable input
Out[5]=
Compute the equivalent fields in Cartesian coordinates for and visualize the equipotential surfaces and lines of force:
In[6]:=
Click for copyable input
Out[6]=
In[7]:=
Click for copyable input
Out[7]=
In[11]:=
Click for copyable input
In[12]:=
Click for copyable input
In[13]:=
Click for copyable input
Out[13]=
New to Mathematica? Find your learning path »
Have a question? Ask support »