Post Reply 
Gramschmidt and scalar product
05-08-2021, 10:34 AM
Post: #2
RE: Gramschmidt and scalar product
A scalar product takes 2 arguments (the vectors), not four (the coordinates).
I recommend to define the scalar product separately. With indices starting at 0:
Code:

sp(v,w):=v[0]*w[0]-v[1]*w[0]-w[1]*v[0]+2*v[1]*w[1];
B:=gramschmidt([[1,2],[3, 4]],sp)
You can check with sp(B[0],B[0]); sp(B[0],B[1]); sp(B[1],B[1])
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Gramschmidt and scalar product - Tonig00 - 05-08-2021, 08:59 AM
RE: Gramschmidt and scalar product - parisse - 05-08-2021 10:34 AM



User(s) browsing this thread: 1 Guest(s)