"Source: Text/Commut/AlgAff.text";
"Line: 365";
"Date: Tue Jun  7 22:27:15 2016";
"Main: Thu May 25 10:02:38 2023";
// original file: Text/Commut/AlgAff.text, line: 365
// Example: H115E2 ()
print "Example: H115E2";
ei := GetEchoInput();
SetEchoInput(true);
Q := RationalField();
A<x,y,z> := AffineAlgebra<Q,x,y,z | x^2 - y + 1, y^3 + z - 1>;
A;
I := ideal<A | x^3*y*z^2>;
IsRadical(I);
assert not $1;
Radical(I);
PQ, PP := PrimaryDecomposition(I);
#PQ;
assert $1 eq 3;
PQ[1];
PP[1];
SetEchoInput(ei);
