Changeset de47d79 in git


Ignore:
Timestamp:
Aug 14, 1997, 3:10:47 PM (27 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
f988c941611227e28c070493ca12772f99b9d1e7
Parents:
885a83c199da764bb3a396d45654a4bf580f00ce
Message:
* hannes: assign ideal=matrix was missing (ipassign.cc)
          gcd(0,0) ->1 (longrat.cc)


git-svn-id: file:///usr/local/Singular/svn/trunk@621 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/all.lib

    r885a83 rde47d79  
    1 // $Id: all.lib,v 1.2 1997-06-04 19:45:25 obachman Exp $
     1// $Id: all.lib,v 1.3 1997-08-14 13:10:47 Singular Exp $
    22///////////////////////////////////////////////////////////////////////////////
    33
     
    2020LIB "ring.lib";
    2121LIB "sing.lib";
     22LIB "hnoether.lib";
  • Singular/clapsing.cc

    r885a83 rde47d79  
    33*  Computer Algebra System SINGULAR     *
    44****************************************/
    5 // $Id: clapsing.cc,v 1.10 1997-07-04 13:46:43 Singular Exp $
     5// $Id: clapsing.cc,v 1.11 1997-08-14 13:10:42 Singular Exp $
    66/*
    77* ABSTRACT: interface between Singular and factory
     
    297297  {
    298298    pSetCoeff( f, nInit( 1 ) );
    299       pTest(f);
    300299    return;
    301300  }
     
    305304    CanonicalForm g, h;
    306305    poly p = pNext(f);
     306    nTest(pGetCoeff(f));
    307307    g = convSingTrClapP( ((lnumber)pGetCoeff(f))->z );
    308308    L.append( g );
    309309    while ( p && (g != 1) )
    310310    {
     311      nTest(pGetCoeff(p));
    311312      h = convSingTrClapP( ((lnumber)pGetCoeff(p))->z );
    312313      p = pNext( p );
     
    318319      pTest(f);
    319320      return;
    320     } 
     321    }
     322    #ifdef LDEBUG
     323    else if ( g == 0 )
     324    {
     325      pTest(f);
     326      pWrite(f);
     327      PrintS("=> gcd 0 in divide_content\n");
     328      return;
     329    }
     330    #endif
    321331    else
    322332    {
     
    327337        napDelete(&c->z);
    328338        c->z=convClapPSingTr( i.getItem() / g );
     339        nTest((number)c);
    329340      }
    330341    }
  • Singular/ipassign.cc

    r885a83 rde47d79  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipassign.cc,v 1.16 1997-07-09 15:53:59 Singular Exp $ */
     4/* $Id: ipassign.cc,v 1.17 1997-08-14 13:10:43 Singular Exp $ */
    55
    66/*
     
    462462// proc         res             arg
    463463 {jiA_IDEAL,    IDEAL_CMD,      IDEAL_CMD }
     464,{jiA_IDEAL_M,  IDEAL_CMD,      MATRIX_CMD }
    464465,{jiA_RESOLUTION,RESOLUTION_CMD,RESOLUTION_CMD }
    465 ,{jiA_IDEAL_M,  IDEAL_CMD,      MATRIX_CMD }
    466466,{jiA_INT,      INT_CMD,        INT_CMD }
    467467,{jiA_IDEAL,    MATRIX_CMD,     MATRIX_CMD }
  • Singular/longalg.cc

    r885a83 rde47d79  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: longalg.cc,v 1.7 1997-06-25 07:58:08 Singular Exp $ */
     4/* $Id: longalg.cc,v 1.8 1997-08-14 13:10:44 Singular Exp $ */
    55/*
    66* ABSTRACT:   algebraic numbers
     
    23692369    return TRUE;
    23702370#ifdef MDEBUG
    2371   if (!mmDBTestBlock(a,sizeof(rnumber),f,l))
    2372     return FALSE;
     2371  mmDBTestBlock(a,sizeof(rnumber),f,l);
    23732372#endif
    23742373  alg p = x->z;
     
    23802379  while(p!=NULL)
    23812380  {
     2381    if (nIsZero(p->ko))
     2382    {
     2383      Print("coeff 0 in %s:%d\n",f,l);
     2384      return FALSE;
     2385    }
    23822386    if((naMinimalPoly!=NULL)&&(p->e[0]>naMinimalPoly->e[0])
    23832387    &&(p!=naMinimalPoly))
     
    23942398      return FALSE;
    23952399#ifdef MDEBUG
    2396     if (!mmDBTestBlock(p,RECA_SIZE+naNumbOfPar*sizeof(int),f,l))
    2397       return FALSE;
     2400    mmDBTestBlock(p,RECA_SIZE+naNumbOfPar*sizeof(int),f,l);
    23982401#endif
    23992402    p = p->ne;
  • Singular/longrat.cc

    r885a83 rde47d79  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: longrat.cc,v 1.11 1997-08-12 17:14:39 Singular Exp $ */
     4/* $Id: longrat.cc,v 1.12 1997-08-14 13:10:45 Singular Exp $ */
    55/*
    66* ABSTRACT: computation with long rational numbers (Hubert Grassmann)
     
    18551855  if (SR_HDL(a) & SR_HDL(b) & SR_INT)
    18561856  {
    1857     int i=ABS(SR_TO_INT(a));
    1858     int j=ABS(SR_TO_INT(b));
     1857    int i=SR_TO_INT(a);
     1858    int j=SR_TO_INT(b);
     1859    if((i==0)||(j==0))
     1860      return INT_TO_SR(1);
    18591861    int l;
     1862    i=ABS(i);
     1863    j=ABS(j);
    18601864    do
    18611865    {
  • Singular/spolys0.cc

    r885a83 rde47d79  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: spolys0.cc,v 1.4 1997-08-01 10:53:08 Singular Exp $ */
     4/* $Id: spolys0.cc,v 1.5 1997-08-14 13:10:46 Singular Exp $ */
    55
    66/*
     
    3232{
    3333  int c = 0;
    34   number an = *a, bn = *b, cn = nGcd(an, bn);
     34  number an = *a, bn = *b;
     35  nTest(an);
     36  nTest(bn);
     37  number cn = nGcd(an, bn);
    3538
    3639  if(nIsOne(cn))
Note: See TracChangeset for help on using the changeset viewer.