Changeset 9b46be in git for Singular/LIB/ring.lib


Ignore:
Timestamp:
Feb 12, 2015, 11:48:27 AM (9 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
3a823d31cc10c360f47890e903f0104a00e4f97b
Parents:
b6b3d32f64eb5abf2e433181da0eb1e393339533
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2015-02-12 11:48:27+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2015-02-12 13:39:38+01:00
Message:
add Ring::hasAlgExtensionCoefficient
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/ring.lib

    rb6b3d3 r9b46be  
    3131 hasMixedOrdering()       mixed versus global/local ordering
    3232 hasFieldCoefficient(rng) coefficients are a field
     33 hasAlgExtensionCoefficient(r) coefficients are an algebraic extension
    3334 isQuotientRing(rng)      ring is a qotient ring
    3435 isSubModule(I,J)         check if I is in J as submodule
     
    924925}
    925926
    926 
    927 
    928 
    929927proc isQuotientRing(def rng )
    930928"USAGE: isQuotientRing ( rng );
     
    947945example
    948946{
     947  "EXAMPLE:";echo=2;
    949948  ring rng = 0,x,dp;
    950949  isQuotientRing(rng); //no
     
    993992example
    994993{
     994  "EXAMPLE:";echo=2;
    995995  ring rng = integer,x,dp;
    996996  hasFieldCoefficient(rng); //no
     
    999999  ring rng2 = 0, x, dp;
    10001000  hasFieldCoefficient(rng2);  // yes
     1001}
     1002
     1003proc hasAlgExtensionCoefficient(def rng )
     1004"USAGE: hasAlgExtensionCoefficient ( rng );
     1005RETURN:  1 if the coeffcients are an gelebrai extension, 0 otherwise.
     1006KEYWORDS: ring coefficients
     1007EXAMPLE: example hasAlgExtensionCoefficient; shows an example
     1008"
     1009{
     1010  def savering=basering;
     1011  setring rng;
     1012  int r=(string(minpoly)!="0");
     1013  setring savering;
     1014  return(r);
     1015}
     1016example
     1017{
     1018  "EXAMPLE:";echo=2;
     1019  ring rng = integer,x,dp;
     1020  hasAlgExtensionCoefficient(rng); //no
     1021  ring rng2 = (0,a), x, dp; minpoly=a2-1;
     1022  hasAlgExtensionCoefficient(rng2);  // yes
    10011023}
    10021024
Note: See TracChangeset for help on using the changeset viewer.