This function computes an 8 point derivative.
derivative(X, Y)
X
The variable to differentiate with respect to.
Y
The function / vector to differentiate.