Changeset cd6dbb2 in git


Ignore:
Timestamp:
Nov 11, 1999, 5:03:33 PM (24 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
c2c075e00c1bcfd1980cd1e24e5d2c3990ea8ab4
Parents:
1d00a525ad0cde0db365946cde621499f3a50156
Message:
* hannes: spectrum changes, part 1


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

Legend:

Unmodified
Added
Removed
  • Singular/LIB/sing.lib

    r1d00a5 rcd6dbb2  
    1 // $Id: sing.lib,v 1.17 1999-09-21 17:32:18 Singular Exp $
     1// $Id: sing.lib,v 1.18 1999-11-11 16:03:33 Singular Exp $
    22//(GMG/BM, last modified 26.06.96)
    33///////////////////////////////////////////////////////////////////////////////
    44
    5 version="$Id: sing.lib,v 1.17 1999-09-21 17:32:18 Singular Exp $";
     5version="$Id: sing.lib,v 1.18 1999-11-11 16:03:33 Singular Exp $";
    66info="
    77LIBRARY:  sing.lib      PROCEDURES FOR SINGULARITIES
     
    2121 nf_icis(i);            generic combinations of generators; get ICIS in nf
    2222 slocus(i);             ideal of singular locus of ideal i
    23  spectrum(f,w);         spectrum numbers of w-homogeneous polynomial f
     23 qhspectrum(f,w);       spectrum numbers of w-homogeneous polynomial f
    2424 Tjurina(i);            SB of Tjurina module of ideal i (assume i is ICIS)
    2525 tjurina(i);            Tjurina number of ideal i (assume i is ICIS)
     
    378378///////////////////////////////////////////////////////////////////////////////
    379379
    380 proc spectrum (poly f, intvec w)
    381 "USAGE:   spectrum(f,w);  f=poly, w=intvec;
     380proc qhspectrum (poly f, intvec w)
     381"USAGE:   qhspectrum(f,w);  f=poly, w=intvec;
    382382ASSUME:  f is a weighted homogeneous isolated singularity w.r.t. the weights
    383383         given by w; w must consist of as many positive integers as there
     
    389389         No return value if basering has parameters or if f is no isolated
    390390         singularity, displays a warning in this case
    391 EXAMPLE: example spectrum; shows an example
     391EXAMPLE: example qhspectrum; shows an example
    392392"
    393393{
     
    425425   poly f=x3+y5+z2;
    426426   intvec w=10,6,15;
    427    spectrum(f,w);
     427   qhspectrum(f,w);
    428428   // the spectrum numbers are:
    429429   // 1/30,7/30,11/30,13/30,17/30,19/30,23/30,29/30
  • Singular/iparith.cc

    r1d00a5 rcd6dbb2  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iparith.cc,v 1.184 1999-10-22 11:14:10 obachman Exp $ */
     4/* $Id: iparith.cc,v 1.185 1999-11-11 16:03:31 Singular Exp $ */
    55
    66/*
     
    282282  { "sortvec",     0, SORTVEC_CMD ,       CMD_1},
    283283  #ifdef HAVE_SPECTRUM
    284   { "Spectrum",    0, SPECTRUM_CMD ,      CMD_123},
     284  { "spectrum",    0, SPECTRUM_CMD ,      CMD_123},
    285285  { "semic",       0, SEMIC_CMD ,         CMD_23},
    286286  #endif
     
    18521852  int wmaxl=maxl;
    18531853  ideal u_id=(ideal)u->Data();
    1854  
     1854
    18551855  maxl--;
    18561856  if ((maxl==-1) && (iiOp!=MRES_CMD))
  • Singular/spectrum.cc

    r1d00a5 rcd6dbb2  
    12891289{
    12901290  semicState  state;
    1291   BOOLEAN qh=((int)w->Data())==1);
     1291  BOOLEAN qh=(((int)w->Data())==1);
    12921292
    12931293  // -----------------
     
    12951295  // -----------------
    12961296
    1297   lists l1 = (lists)first->Data( );
    1298   lists l2 = (lists)second->Data( );
     1297  lists l1 = (lists)u->Data( );
     1298  lists l2 = (lists)v->Data( );
    12991299
    13001300  if( (state=list_is_spectrum( l1 ))!=semicOK )
     
    13131313    spectrum s2( l2 );
    13141314
    1315     result->rtyp = INT_CMD;
     1315    res->rtyp = INT_CMD;
    13161316    if (qh)
    1317       result->data = (void*)(s1.mult_spectrumh( s2 ));
     1317      res->data = (void*)(s1.mult_spectrumh( s2 ));
    13181318    else
    1319       result->data = (void*)(s1.mult_spectrum( s2 ));
     1319      res->data = (void*)(s1.mult_spectrum( s2 ));
    13201320  }
    13211321
     
    13281328BOOLEAN    semicProc   ( leftv res,leftv u,leftv v )
    13291329{
    1330   sleft tmp;
    1331   memset(&tmp,0,sizeof(tmp);
     1330  sleftv tmp;
     1331  memset(&tmp,0,sizeof(tmp));
    13321332  tmp.rtyp=INT_CMD;
    13331333  /* tmp.data = (void *)0;  -- done by memset */
Note: See TracChangeset for help on using the changeset viewer.