def dipole_potential(x, y):
 r_sq = ((x ** 2) + (y ** 2))
 theta = np.arctan2(y, x)
 z = (np.cos(theta) / r_sq)
 return ((np.max(z) - z) / (np.max(z) - np.min(z)))

def dipole_potential ( x , y ) : r_sq = ( ( x ** 2 ) + ( y ** 2 ) ) theta = np . arctan2 ( y , x ) z = ( np . cos ( theta ) / r_sq ) return ( ( np . max ( z ) - z ) / ( np . max ( z ) - np . min ( z ) ) )
the electric dipole potential v .