"Source: Text/Basics/ModFld.text";
"Line: 620";
"Date: Thu Sep 25 14:47:46 2025";
"Main: Fri Sep 26 14:29:19 2025";
// original file: Text/Basics/ModFld.text, line: 620
// Example: H29E6 ()
print "Example: H29E6";
ei := GetEchoInput();
SetEchoInput(true);
Q := RationalField();
F := SymmetricMatrix(Q, [1, 0,2, 0,0,3, 1,2,3,4]);
F;
V := VectorSpace(Q, 4, F);
V;
v := V![1,0,0,0];
Norm(v);
assert $1 eq 1;
w := V![0,1,0,0];
Norm(w);
assert $1 eq 2;
InnerProduct(v, w);
assert $1 eq 0;
z := V![0,0,0,1];
Norm(z);
assert $1 eq 4;
InnerProduct(v, z);
assert $1 eq 1;
InnerProduct(w, z);
assert $1 eq 2;
SetEchoInput(ei);
