WOLFRAM LANGUAGE 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[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
Compute the equivalent fields in Cartesian coordinates for and visualize the equipotential surfaces and lines of force:
In[4]:=
Click for copyable input
Out[4]=
In[5]:=
Click for copyable input
Out[5]=
In[6]:=
Click for copyable input
In[7]:=
Click for copyable input
In[8]:=
Click for copyable input
Out[8]=