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]:= |
| Out[3]= |
| In[4]:= |
| Out[4]= |
| In[5]:= |
| Out[5]= |
Compute the equivalent fields in Cartesian coordinates for
and visualize the equipotential surfaces and lines of force:
| In[6]:= |
| Out[6]= |
| In[7]:= |
| Out[7]= |
| In[11]:= |
| In[12]:= |
| In[13]:= |
| Out[13]= | ![]() |


