Changeset 409020 in git


Ignore:
Timestamp:
Jul 10, 2001, 1:49:19 PM (22 years ago)
Author:
Alexander Dreyer <dreyer@…>
Branches:
(u'spielwiese', 'ec94ef7a30b928574c0c3daf41f6804dff5f6b69')
Children:
6a81f86c715f2c701a838ba9632de78d778e28c6
Parents:
405ebc1754b159d0bbcacb3b2d555af201e48810
Message:
+ changed commands factor to factorize(...,2), idealsEqual to modulesEqual
  minAssPrimes to minAssGTZ;  minAssChar;


git-svn-id: file:///usr/local/Singular/svn/trunk@5526 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/mprimdec.lib

    r405ebc r409020  
    1 // $Id: mprimdec.lib,v 1.2 2001-05-17 14:36:29 Singular Exp $
     1// $Id: mprimdec.lib,v 1.3 2001-07-10 11:49:19 dreyer Exp $
    22///////////////////////////////////////////////////////////////////////////////
    3 // mprimdec.lib                                                                 //
    4 // algorithms for primary decomposition for modules based on                 //
    5 // the algorithms of Gianni, Trager and Zacharias and                        //
    6 // Shimoyama and Yokoyama (generalization suggested by                       //
    7 // the ideas of Hans-Gert Gräbe, Leipzig  )                                  //
    8 // using elments of primdec.lib                                              //
    9 // written by Alexander Dreyer                                               //
    10 //                                                                           //
     3// mprimdec.lib
     4// algorithms for primary decomposition for modules based on
     5// the algorithms of Gianni, Trager and Zacharias and
     6// Shimoyama and Yokoyama (generalization of the latter
     7// suggested by Hans-Gert Gräbe, Leipzig  )
     8// using elments of primdec.lib
     9// written by Alexander Dreyer
     10//
     11// $Log: not supported by cvs2svn $
     12//
    1113///////////////////////////////////////////////////////////////////////////////
    1214
    13 version="$Id: mprimdec.lib,v 1.2 2001-05-17 14:36:29 Singular Exp $";
     15version="$Id: mprimdec.lib,v 1.3 2001-07-10 11:49:19 dreyer Exp $";
    1416category="Commutative Algebra";
    1517
     
    135137         computed by a generalized version of
    136138         the algorithm of Schimoyama/Yokoyama,
    137          if i=1 is given, the factorizing Groebner is used
    138          to compute the isolated primes.
     139         if i!=0 is given, the factorizing Groebner is used
     140         to compute the isolated primes
    139141EXAMPLE: example PrimdecA; shows an example
    140142"
     
    159161  else
    160162  {
    161     list pr = minAssPrimes(ann, #);       // causes message  "/ ** redefining @res **" if #[1]=1
    162   }
     163    if( (size(#)>0) ){
     164      list pr = minAssChar(ann);   // causes message  "/ ** redefining @res **"
     165    }
     166    else{
     167      list pr = minAssGTZ(ann); 
     168    }
     169  }
     170
    163171  list sp, pprimary;     // the separators and the pseudo-primary modules
    164172  int @i;
     
    386394      if (@j!=@i)
    387395      {
    388         if (idealsEqual(prim[@i][2],prim[@j-@l][2])==1)
     396        if (modulesEqual(prim[@i][2],prim[@j-@l][2])==1)
    389397        {
    390398          prim[@i][1]=intersect(prim[@i][1],prim[@j-@l][1]);
     
    916924  for (@i=1;@i<=size(ann);@i++)
    917925  {
    918     fact=factor(ann[@i]);
     926    fact=factorize(ann[@i],2);
    919927    szFact=size(fact[2]);
    920928    // if the element is the power of an irreducible element
     
    11961204  if(deg(ann[1])>0)
    11971205  {
    1198     act=factor(ann[1]);
     1206    act=factorize(ann[1],2);
    11991207  }
    12001208  else
     
    17531761  if(vdim(ann)==deg(ann[1]))           // if ann ist prime
    17541762  {
    1755     list fact=factor(ann[1]);
     1763    list fact=factorize(ann[1],2);
    17561764    int k;ideal id;list result;
    17571765    module hilf;
Note: See TracChangeset for help on using the changeset viewer.