"Source: Text/Commut/AlgAff.text";
"Line: 366";
"Date: Thu Sep 25 14:47:46 2025";
"Main: Fri Sep 26 14:29:19 2025";
// original file: Text/Commut/AlgAff.text, line: 366
// Example: H118E2 ()
print "Example: H118E2";
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);
