compute numerica gradient in octave