Changeset d2b2a7 in git for Singular/LIB/poly.lib


Ignore:
Timestamp:
May 5, 1998, 1:55:40 PM (26 years ago)
Author:
Kai Krüger <krueger@…>
Branches:
(u'spielwiese', 'ec94ef7a30b928574c0c3daf41f6804dff5f6b69')
Children:
97f92aa6d280f6022eaae47195ccc02503ccb984
Parents:
4996f5286c7671191ad22e654499fd8b752fe4f0
Message:
Modified Files:
	libparse.l utils.cc LIB/classify.lib LIB/deform.lib
	LIB/elim.lib LIB/factor.lib LIB/fastsolv.lib LIB/finvar.lib
	LIB/general.lib LIB/hnoether.lib LIB/homolog.lib LIB/inout.lib
	LIB/invar.lib LIB/makedbm.lib LIB/matrix.lib LIB/normal.lib
	LIB/poly.lib LIB/presolve.lib LIB/primdec.lib LIB/primitiv.lib
	LIB/random.lib LIB/ring.lib LIB/sing.lib LIB/standard.lib
	LIB/tex.lib LIB/tst.lib
Changed help section o procedures to have an quoted help-string between
proc-definition and proc-body.


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

Legend:

Unmodified
Added
Removed
  • Singular/LIB/poly.lib

    r4996f52 rd2b2a7  
    1 // $Id: poly.lib,v 1.11 1998-04-06 17:59:38 obachman Exp $
     1// $Id: poly.lib,v 1.12 1998-05-05 11:55:33 krueger Exp $
    22//system("random",787422842);
    33//(GMG, last modified 22.06.96)
     
    55///////////////////////////////////////////////////////////////////////////////
    66
    7 version="$Id: poly.lib,v 1.11 1998-04-06 17:59:38 obachman Exp $";
     7version="$Id: poly.lib,v 1.12 1998-05-05 11:55:33 krueger Exp $";
    88info="
    99LIBRARY:  poly.lib      PROCEDURES FOR MANIPULATING POLYS, IDEALS, MODULES
     
    3030
    3131proc cyclic (int n)
    32 USAGE:   cyclic(n);  n integer
     32"USAGE:   cyclic(n);  n integer
    3333RETURN:  ideal of cyclic n-roots from 1-st n variables of basering
    3434EXAMPLE: example cyclic; shows examples
     35"
    3536{
    3637//----------------------------- procedure body --------------------------------
     
    5859
    5960proc katsura
    60 USAGE:  katsura([n]); n integer
     61"USAGE: katsura([n]); n integer
    6162RETURN: katsura(n) : n-th katsura ideal of newly created and set ring
    6263                     (32003, x(0..n), dp)
    6364        katsura()  : katsura ideal of basering
    6465EXAMPLE: example katsura; shows examples
     66"
    6567{
    6668  if ( size(#) == 1 && typeof(#[1]) == "int")
     
    111113
    112114proc freerank
    113 USAGE:   freerank(M[,any]);  M=poly/ideal/vector/module/matrix
     115"USAGE:   freerank(M[,any]);  M=poly/ideal/vector/module/matrix
    114116COMPUTE: rank of module presented by M in case it is free. By definition this
    115117         is vdim(coker(M)/m*coker(M)) if coker(M) is free, where m = maximal
     
    124126         //betti(0) ist -1 statt 0
    125127EXAMPLE: example freerank; shows examples
     128"
    126129{
    127130  int rk;
     
    148151
    149152proc is_homog (id)
    150 USAGE:   is_homog(id);  id  poly/ideal/vector/module/matrix
     153"USAGE:   is_homog(id);  id  poly/ideal/vector/module/matrix
    151154RETURN:  integer which is 1 if input is homogeneous (resp. weighted homogeneous
    152155         if the monomial ordering consists of one block of type ws,Ws,wp or Wp,
     
    157160         //*** ergaenzen, wenn Matrizen-Spalten Gewichte haben
    158161EXAMPLE: example is_homog; shows examples
     162"
    159163{
    160164//----------------------------- procedure body --------------------------------
     
    186190
    187191proc is_zero
    188 USAGE:   is_zero(M[,any]); M=poly/ideal/vector/module/matrix
     192"USAGE:   is_zero(M[,any]); M=poly/ideal/vector/module/matrix
    189193RETURN:  integer, 1 if coker(M)=0 resp. 0 if coker(M)!=0, where M is considered
    190194         as matrix
     
    193197                L[2] = dim(M)
    194198EXAMPLE: example is_zero; shows examples
     199"
    195200{
    196201  int d=dim(std(#[1]));
     
    211216
    212217proc maxcoef (f)
    213 USAGE:   maxcoef(f);  f  poly/ideal/vector/module/matrix
     218"USAGE:   maxcoef(f);  f  poly/ideal/vector/module/matrix
    214219RETURN:  maximal length of coefficient of f of type int (by counting the
    215220         length of the string of each coefficient)
    216221EXAMPLE: example maxcoef; shows examples
     222"
    217223{
    218224//----------------------------- procedure body --------------------------------
     
    247253
    248254proc maxdeg (id)
    249 USAGE:   maxdeg(id);  id  poly/ideal/vector/module/matrix
     255"USAGE:   maxdeg(id);  id  poly/ideal/vector/module/matrix
    250256RETURN:  int/intmat, each component equals maximal degree of monomials in the
    251257         corresponding component of id, independent of ring ordering
     
    255261         an option for computing weighted degrees
    256262EXAMPLE: example maxdeg; shows examples
     263"
    257264{
    258265   //-------- subprocedure to find maximal degree of given component ----------
     
    300307
    301308proc maxdeg1 (id,list #)
    302 USAGE:   maxdeg1(id[,v]);  id=poly/ideal/vector/module/matrix, v=intvec
     309"USAGE:   maxdeg1(id[,v]);  id=poly/ideal/vector/module/matrix, v=intvec
    303310RETURN:  integer, maximal [weighted] degree of monomials of id independent of
    304311         ring ordering, maxdeg1 of i-th variable is v[i] (default: v=1..1).
     
    307314         maxdeg is faster
    308315EXAMPLE: example maxdeg1; shows examples
     316"
    309317{
    310318   //-------- subprocedure to find maximal degree of given component ----------
     
    381389
    382390proc mindeg (id)
    383 USAGE:   mindeg(id);  id  poly/ideal/vector/module/matrix
     391"USAGE:   mindeg(id);  id  poly/ideal/vector/module/matrix
    384392RETURN:  minimal degree/s of monomials of id, independent of ring ordering
    385393         (mindeg of each variable is 1) of type int if id of type poly, else
     
    388396         has an option for computing weighted degrees.
    389397EXAMPLE: example mindeg; shows examples
     398"
    390399{
    391400   //--------- subprocedure to find minimal degree of given component ---------
     
    434443
    435444proc mindeg1 (id, list #)
    436 USAGE:   mindeg1(id[,v]);  id=poly/ideal/vector/module/matrix, v=intvec
     445"USAGE:   mindeg1(id[,v]);  id=poly/ideal/vector/module/matrix, v=intvec
    437446RETURN:  integer, minimal [weighted] degree of monomials of id independent of
    438447         ring ordering, mindeg1 of i-th variable is v[i] (default v=1..1).
     
    441450         mindeg is faster.
    442451EXAMPLE: example mindeg1; shows examples
     452"
    443453{
    444454   //--------- subprocedure to find minimal degree of given component ---------
     
    514524
    515525proc normalize (id)
    516 USAGE:   normalize(id);  id=poly/vector/ideal/module
     526"USAGE:   normalize(id);  id=poly/vector/ideal/module
    517527RETURN:  object of same type with leading coefficient equal to 1
    518528EXAMPLE: example normalize; shows an example
     529"
    519530{
    520531   return(simplify(id,1));
     
    543554////////////////////////////////////////////////////////////////////////////////
    544555proc rad_con (poly g,ideal I)
    545   USAGE:   rad_con(<poly>,<ideal>);
     556"  USAGE:   rad_con(<poly>,<ideal>);
    546557  RETURNS: 1 (TRUE) (type <int>) if <poly> is contained in the radical of
    547558           <ideal>, 0 (FALSE) (type <int>) otherwise
    548559  EXAMPLE: example rad_con; shows an example
     560"
    549561{ def br=basering;
    550562  int n=nvars(br);
     
    582594
    583595proc lcm (ideal i)
    584 USAGE:   lcm(i); i ideal
     596"USAGE:   lcm(i); i ideal
    585597RETURN:  poly = lcm(i[1],...,i[size(i)])
    586598NOTE:   
    587599EXAMPLE: example lcm; shows an example
     600"
    588601{
    589602  int k,j;
     
    636649
    637650proc content(f)
    638 USAGE:   content(f); f polynomial/vector
     651"USAGE:   content(f); f polynomial/vector
    639652RETURN:  number, the content (greatest common factor of coefficients)
    640653         of the polynomial/vector f
    641654EXAMPLE: example content; shows an example
     655"
    642656{
    643657  return(leadcoef(f)/leadcoef(cleardenom(f)));
Note: See TracChangeset for help on using the changeset viewer.