Changeset 0f7ce1 in git for kernel/hdegree.cc
- Timestamp:
- Apr 26, 2005, 10:59:10 AM (19 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- dda2fd472582bc5fdf1e2052d1c46f9c9e7023d8
- Parents:
- 5d00520a016f7e7089be25484b5cc41e3b897fd4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/hdegree.cc
r5d0052 r0f7ce1 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: hdegree.cc,v 1. 3 2004-10-05 11:25:39 pohlExp $ */4 /* $Id: hdegree.cc,v 1.4 2005-04-26 08:57:54 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT - dimension, multiplicity, HC, kbase … … 807 807 } 808 808 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; 809 void 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; 815 827 } 816 828
Note: See TracChangeset
for help on using the changeset viewer.