[idvusers] IDV formula for gradient of scalar field


I need to make an IDV formula to make the gradient of a 2d scalar field (a new 2d vector field), and also the magnitude of the gradient as a new scalar field. Anyone know how to do that offhand?

Stuart Wier