gram_schmidt INDEX

GRAM_SCHMIDT _ _ _ _ _ _ _ _ _ _ _ _ operator

syntax:

gram_schmidt({<vec\_list>})

(If you are feeling lazy then the braces can be omitted.)

<vec\_list> :- linearly independent vectors. Each vector must be written as a list, eg:{1,0,0}.

gram_schmidtperforms the gram_schmidt orthonormalization on the input vectors.

It returns a list of orthogonal normalized vectors.

examples:



gram_schmidt({{1,0,0},{1,1,0},{1,1,1}}); 


  {{1,0,0},{0,1,0},{0,0,1}} 



gram_schmidt({{1,2},{3,4}}); 


        1         2        2*sqrt(5)   -sqrt(5)
  {{ ------- , ------- },{ --------- , -------- }}
     sqrt(5)   sqrt(5)         5          5