Changeset e4b8c88 in git


Ignore:
Timestamp:
Nov 8, 2016, 4:40:06 PM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
7b91e9f8719333bdbe27dcebdd5373b7100f4013
Parents:
939ae032b1af2575305b131ba26f2ba6bd5d74e9
Message:
chg: prepare for 4_1 (realclassify.lib)
Location:
Singular/LIB
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/realclassify.lib

    r939ae03 re4b8c88  
    11////////////////////////////////////////////////////////////////////////////
    2 version="version realclassify.lib 4.0.0.0 Jun_2013 "; // $Id$
     2version="version realclassify.lib 4.0.3.5 Nov_2016 "; // $Id$
    33category="Singularities";
    44info="
     
    9292
    9393  /* error check */
    94   if(charstr(br) != "0")
     94  if(!hasQQCoefficient(br))
    9595  {
    9696    ERROR("The ground field must be Q (the rational numbers).");
  • Singular/LIB/ring.lib

    r939ae03 re4b8c88  
    2828 hasZpCoefficient         check if the coefficient ring is ZZ/p
    2929 hasZp_aCoefficient       check if the coefficient ring is an elag. ext. of ZZ/p
     30 hasQQCoefficient         check if the coefficient ring is QQ
    3031 hasNumericCoeffs(rng)    check for use of floating point numbers
    3132 hasCommutativeVars(rng)  non-commutive or commnuative polynomial ring
    3233 hasGlobalOrdering(rng)   global versus mixed/local monomial ordering
    3334 hasMixedOrdering()       mixed versus global/local ordering
    34  hasFieldCoefficient(rng) coefficients are a field
    3535 hasAlgExtensionCoefficient(r) coefficients are an algebraic extension
    3636 hasTransExtensionCoefficient(r) coefficients are rational functions
     
    10641064proc hasGFCoefficient(def rng )
    10651065"USAGE: hasGFCoefficient ( rng );
    1066 RETURN:  1 if the coeffcients form GF(p,k), 0 otherwise.
     1066RETURN:  1 if the coeffcients are of the form GF(p,k), 0 otherwise.
    10671067KEYWORDS: ring coefficients
    10681068EXAMPLE: example hasGFCoefficient; shows an example
     
    10901090proc hasZp_aCoefficient(def rng )
    10911091"USAGE: hasZp_aCoefficient ( rng );
    1092 RETURN:  1 if the coeffcients form Zp_a(p,k), 0 otherwise.
     1092RETURN:  1 if the coeffcients are of the form Zp_a(p,k), 0 otherwise.
    10931093KEYWORDS: ring coefficients
    10941094EXAMPLE: example hasZp_aCoefficient; shows an example
     
    11111111proc hasZpCoefficient(def rng )
    11121112"USAGE: hasZpCoefficient ( rng );
    1113 RETURN:  1 if the coeffcients form ZZ/p, 0 otherwise.
     1113RETURN:  1 if the coeffcients are of the form ZZ/p, 0 otherwise.
    11141114KEYWORDS: ring coefficients
    11151115EXAMPLE: example hasZpCoefficient; shows an example
    11161116"
    11171117{
    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") );
    11231118  return(attrib(rng,"cf_class")==1);
    11241119}
     
    11301125  ring r2 = 7,x,dp;
    11311126  hasZpCoefficient(r2);
     1127}
     1128
     1129proc hasQQCoefficient(def rng )
     1130"USAGE: hasQQCoefficient ( rng );
     1131RETURN:  1 if the coeffcients are QQ, 0 otherwise.
     1132KEYWORDS: ring coefficients
     1133EXAMPLE: example hasQQCoefficient; shows an example
     1134"
     1135{
     1136  return(attrib(rng,"cf_class")==2);
     1137}
     1138example
     1139{
     1140  "EXAMPLE:";echo=2;
     1141  ring r1 = integer,x,dp;
     1142  hasQQCoefficient(r1);
     1143  ring r2 = QQ,x,dp;
     1144  hasQQCoefficient(r2);
    11321145}
    11331146
Note: See TracChangeset for help on using the changeset viewer.