V_proj
Projection of one vector on another.
|
Loading LOADSUB ALL FROM "VPROJ.HTS"
or LOADSUB FROM "MATHLIB.HTS"
Usage REAL A(*),B(*),Y
Y=FNV_proj(A(*),B(*))
Description
FNV_proj computes the length of the projection of vector a onto the direction of vector b. This is done by evaluating
where "•" denotes the dot, or scalar, product and b denotes the L-2 norm of the vector b.
Errors
V_proj causes an HTBasic error if A and B are not both of type REAL, if they do not have the same number of elements, or if B contains all zeros.
See Also
V_cosine, V_dot, V_prod
|