split up compute gradients into sub-functions
Authored by: hspark 2001-06-04
Parent: [r241]
Child: [r243]