Changeset e4b8c88 in git
- Timestamp:
- Nov 8, 2016, 4:40:06 PM (8 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
- Children:
- 7b91e9f8719333bdbe27dcebdd5373b7100f4013
- Parents:
- 939ae032b1af2575305b131ba26f2ba6bd5d74e9
- Location:
- Singular/LIB
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/realclassify.lib
r939ae03 re4b8c88 1 1 //////////////////////////////////////////////////////////////////////////// 2 version="version realclassify.lib 4.0. 0.0 Jun_2013"; // $Id$2 version="version realclassify.lib 4.0.3.5 Nov_2016 "; // $Id$ 3 3 category="Singularities"; 4 4 info=" … … 92 92 93 93 /* error check */ 94 if( charstr(br) != "0")94 if(!hasQQCoefficient(br)) 95 95 { 96 96 ERROR("The ground field must be Q (the rational numbers)."); -
Singular/LIB/ring.lib
r939ae03 re4b8c88 28 28 hasZpCoefficient check if the coefficient ring is ZZ/p 29 29 hasZp_aCoefficient check if the coefficient ring is an elag. ext. of ZZ/p 30 hasQQCoefficient check if the coefficient ring is QQ 30 31 hasNumericCoeffs(rng) check for use of floating point numbers 31 32 hasCommutativeVars(rng) non-commutive or commnuative polynomial ring 32 33 hasGlobalOrdering(rng) global versus mixed/local monomial ordering 33 34 hasMixedOrdering() mixed versus global/local ordering 34 hasFieldCoefficient(rng) coefficients are a field35 35 hasAlgExtensionCoefficient(r) coefficients are an algebraic extension 36 36 hasTransExtensionCoefficient(r) coefficients are rational functions … … 1064 1064 proc hasGFCoefficient(def rng ) 1065 1065 "USAGE: hasGFCoefficient ( rng ); 1066 RETURN: 1 if the coeffcients form GF(p,k), 0 otherwise.1066 RETURN: 1 if the coeffcients are of the form GF(p,k), 0 otherwise. 1067 1067 KEYWORDS: ring coefficients 1068 1068 EXAMPLE: example hasGFCoefficient; shows an example … … 1090 1090 proc hasZp_aCoefficient(def rng ) 1091 1091 "USAGE: hasZp_aCoefficient ( rng ); 1092 RETURN: 1 if the coeffcients form Zp_a(p,k), 0 otherwise.1092 RETURN: 1 if the coeffcients are of the form Zp_a(p,k), 0 otherwise. 1093 1093 KEYWORDS: ring coefficients 1094 1094 EXAMPLE: example hasZp_aCoefficient; shows an example … … 1111 1111 proc hasZpCoefficient(def rng ) 1112 1112 "USAGE: hasZpCoefficient ( rng ); 1113 RETURN: 1 if the coeffcients form ZZ/p, 0 otherwise.1113 RETURN: 1 if the coeffcients are of the form ZZ/p, 0 otherwise. 1114 1114 KEYWORDS: ring coefficients 1115 1115 EXAMPLE: example hasZpCoefficient; shows an example 1116 1116 " 1117 1117 { 1118 //return((charstr(rng)!=string(char(rng))) &&1119 //(npars(rng)==1) &&1120 //(find(charstr(rng),string(char(rng)))!=1) &&1121 //(charstr(basering)<>"real")&&1122 //(charstr(basering)<>"complex") );1123 1118 return(attrib(rng,"cf_class")==1); 1124 1119 } … … 1130 1125 ring r2 = 7,x,dp; 1131 1126 hasZpCoefficient(r2); 1127 } 1128 1129 proc hasQQCoefficient(def rng ) 1130 "USAGE: hasQQCoefficient ( rng ); 1131 RETURN: 1 if the coeffcients are QQ, 0 otherwise. 1132 KEYWORDS: ring coefficients 1133 EXAMPLE: example hasQQCoefficient; shows an example 1134 " 1135 { 1136 return(attrib(rng,"cf_class")==2); 1137 } 1138 example 1139 { 1140 "EXAMPLE:";echo=2; 1141 ring r1 = integer,x,dp; 1142 hasQQCoefficient(r1); 1143 ring r2 = QQ,x,dp; 1144 hasQQCoefficient(r2); 1132 1145 } 1133 1146
Note: See TracChangeset
for help on using the changeset viewer.