Skip to main content

Section 11.5 Using Technology to Visualize the Electric Field

Activity 11.5.1. Using technology to visualize the electric field.

You can use the Sage code below to visualize the electric field. You may want to try visualizing the gradient first, as discussed in Section 10.5.

After some initialization, this code defines the potential \(V\text{,}\) computes the electric field \(\EE=-\grad V\text{,}\) then plots \(\EE\) on the same graph as the contour diagram for \(V\text{.}\)