divergence function

divergence