Changeset 49f94f in git for Singular/LIB/ainvar.lib


Ignore:
Timestamp:
Oct 1, 2008, 5:29:23 PM (16 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
238c959ae4616e6b794e6679468a388c696c97fd
Parents:
e9fdf62fe3498dea063e83aeb0033b227a0b08c7
Message:
*hannes: typos reported by gorzel


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

Legend:

Unmodified
Added
Removed
  • Singular/LIB/ainvar.lib

    re9fdf6 r49f94f  
    1 // $Id: ainvar.lib,v 1.8 2006-07-18 12:17:36 Singular Exp $
     1// $Id: ainvar.lib,v 1.9 2008-10-01 15:29:23 Singular Exp $
    22/////////////////////////////////////////////////////////////////////////////
    3 version="$Id: ainvar.lib,v 1.8 2006-07-18 12:17:36 Singular Exp $";
     3version="$Id: ainvar.lib,v 1.9 2008-10-01 15:29:23 Singular Exp $";
    44category="Invariant theory";
    55info="
     
    2626proc sortier(id)
    2727"USAGE:   sortier(id);  id ideal/module
    28 RETURN:  the same ideal/module but with generators ordered by there
    29          leading term, starting with the smallest
     28RETURN:  the same ideal/module but with generators ordered by their
     29         leading terms, starting with the smallest
    3030EXAMPLE: example sortier; shows an example
    3131"
    3232{
    3333  if(size(id)==0)
    34   {return(id);
    35   }
     34  {return(id); }
    3635  intvec i=sortvec(id);
    3736  int j;
    3837  if( typeof(id)=="ideal")
    39   { ideal m;
    40   }
     38  { ideal m; }
    4139  if( typeof(id)=="module")
    42   { module m;
    43   }
    44  if( typeof(id)!="ideal" and  typeof(id)!="module")
    45  { "// input must be of type ideal or module"
    46      return();
    47  }
    48  for (j=1;j<=size(i);j++)
     40  { module m; }
     41  if( typeof(id)!="ideal" and  typeof(id)!="module")
     42  { ERROR("input must be of type ideal or module"); }
     43  for (j=1;j<=size(i);j++)
    4944  {
    5045    m[j] = id[i[j]];
Note: See TracChangeset for help on using the changeset viewer.