Changeset 0f7ce1 in git for kernel/hdegree.cc


Ignore:
Timestamp:
Apr 26, 2005, 10:59:10 AM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
dda2fd472582bc5fdf1e2052d1c46f9c9e7023d8
Parents:
5d00520a016f7e7089be25484b5cc41e3b897fd4
Message:
*hannes: scDegree prints...


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

Legend:

Unmodified
Added
Removed
  • kernel/hdegree.cc

    r5d0052 r0f7ce1  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: hdegree.cc,v 1.3 2004-10-05 11:25:39 pohl Exp $ */
     4/* $Id: hdegree.cc,v 1.4 2005-04-26 08:57:54 Singular Exp $ */
    55/*
    66*  ABSTRACT -  dimension, multiplicity, HC, kbase
     
    807807}
    808808
    809 int scDegree(ideal S, ideal Q)
    810 {
    811   hDegree(S, Q);
    812   int di = pVariables-hCo;
    813   if (di!=0) return hMu;
    814   else /*variety is empty or not projective*/ return 0;
     809void scDegree(ideal S, intvec *modulweight, ideal Q)
     810{
     811  int co, mu, l;
     812  intvec *hseries2;
     813  intvec *hseries1 = hFirstSeries(S, modulweight, Q);
     814  l = hseries1->length()-1;
     815  if (l > 1)
     816    hseries2 = hSecondSeries(hseries1);
     817  else
     818    hseries2 = hseries1;
     819  hDegreeSeries(hseries1, hseries2, &co, &mu);
     820  if ((l == 1) &&(mu == 0))
     821    scPrintDegree(pVariables+1, 0);
     822  else
     823    scPrintDegree(co, mu);
     824  if (l>1)
     825    delete hseries1;
     826  delete hseries2;
    815827}
    816828
Note: See TracChangeset for help on using the changeset viewer.