From: Bruno Luong on
Walter Roberson <roberson(a)hushmail.com> wrote in message

> The statement that the gradient was a./p -- I'm not sure that is right when
> the a(:) are different. Gradient is slope, which would be length(a)-1 values
> in between the other values, and the slope between positions K and K+1 would
> seem to more naturally depend upon a(K) and a(K+1)

You seem to miss-interpret the word GRADIENT Walter. In calculus, gradient of function f(p) (from R^n to R) is the vector (df/dp1, df/dp2, ..., df/dpn). Each element is a partial derivative wrt a variable. There is nothing to do with *in between* two variables as you seem to express it.

Bruno