Calculates the directional derivative of a multivariable function at a vector in a direction.