

I'm trying to apply a bit of rigor to the math  and POVRay's functions.
Function (x, y, z) = a scalar value
But the gradient of a function is a VECTOR, in the direction of the greatest
increase of the function. In 2D, the shortest distance to the next level curve,
and in 3D, the shortest distance to the next level set.
but
fn_Gradient (Function), being a POVRay function returns a scalar value...
So...
I'm guessing that in order to do something like plot a gradient field, I need to
do something like evaluate the ... directional gradient (?) separately for x, y,
and z in order to get a vector for the actual gradient?
Then if I wanted to show the gradient of a curve, I'd plot point P as a sphere,
and then draw a cylinder from P to P * S(scalar)?
And the normal is a vector perpendicular to the gradient  the dot product of
the [normalized?] gradient vector and the directional derivative.
Do I have this all correct?
Post a reply to this message

