//}
//res = "IntFunc" + "{" + cs + "( " + rf.varsToString() + " )" + " } ";
res = "IntFunc" + "( " + rf.toString() + " )";
}
if (coFac instanceof ModIntegerRing) {
ModIntegerRing mn = (ModIntegerRing) coFac;
res = "Mod " + mn.getModul() + " ";
}
if (res == null) {
res = coFac.toString();
if (res.matches("[0-9].*")) {
res = scf;
}
}
res += "( " + varsToString() + " ) " + tord.toString() + " ";
} else {
res = this.getClass().getSimpleName() + "[ " + coFac.toString() + " ";
// + coFac.getClass().getSimpleName();
if (coFac instanceof AlgebraicNumberRing) {
AlgebraicNumberRing an = (AlgebraicNumberRing) coFac;
res = "AN[ (" + an.ring.varsToString() + ") (" + an.modul + ") ]";
}
if (coFac instanceof GenPolynomialRing) {
GenPolynomialRing rf = (GenPolynomialRing) coFac;
//String[] v = rf.vars;
//RingFactory cf = rf.coFac;
//String cs;
//if (cf instanceof ModIntegerRing) {
// cs = cf.toString();
//} else {
// cs = " " + cf.getClass().getSimpleName();
//}
//res = "IntFunc{ " + cs + "( " + rf.varsToString() + " )" + " } ";
res = "IntFunc" + "( " + rf.toString() + " )";
}
if (coFac instanceof ModIntegerRing) {
ModIntegerRing mn = (ModIntegerRing) coFac;
res = "Mod " + mn.getModul() + " ";
}
//res += ", " + nvar + ", " + tord.toString() + ", " + varsToString() + ", " + partial + " ]";
res += "( " + varsToString() + " ) " + tord.toString() + " ]";
}
return res;