Bug fix for the chi-squared gradient calculation in the C module.
The definition of the square() function needed extra brackets so that the 1/error**2 calculation would be 1/(error*error) rather than the incorrect 1/error*error form.
Authored by: bugman 2014-08-26
Parent: [r25281]
Child: [r25283]