Implement gradient of angle term.