"Source: Text/Algebra/AlgQuat.text";
"Line: 3001";
"Date: Wed Sep  4 15:52:10 2019";
"Main: Thu May 25 10:02:38 2023";
// original file: Text/Algebra/AlgQuat.text, line: 3001
// Example: H93E28 ()
print "Example: H93E28";
ei := GetEchoInput();
SetEchoInput(true);
P<x> := PolynomialRing(Rationals());
F := NumberField(x^3-3*x-1);
Z_F := MaximalOrder(F);
Foo := InfinitePlaces(F);
SetSeed(1); 
A := QuaternionAlgebra(ideal<Z_F | 2>, Foo);
IsDefinite(A);
assert $1;
O := MaximalOrder(A);
U, h := UnitGroup(O);
U;
#Units(O);
assert $1 in {9, 12};
SetEchoInput(ei);
