projection(a,b)

Returns the projection of array a onto array b. The arrays can have any dimension.


See also inner independent 


Example


a = ( 2, 4, 5 );

b = ( 1, -1, 2 );

projection( a, b )

1.3333  -1.3333  2.6667