Changeset 0479a86 in git for Singular/syz1.cc
- Timestamp:
- Jun 17, 1997, 4:30:03 PM (27 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 5b9fef10a16120b7be2820e1de075f0275b6db9a
- Parents:
- cfbf231fad8c8e23d9f72e45ec49470c83068282
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/syz1.cc
rcfbf231 r0479a86 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: syz1.cc,v 1. 8 1997-06-09 12:21:29 SingularExp $ */4 /* $Id: syz1.cc,v 1.9 1997-06-17 14:30:03 pohl Exp $ */ 5 5 /* 6 6 * ABSTRACT: resolutions … … 1953 1953 } 1954 1954 1955 static void sySetHighdeg() 1956 { 1957 long long t=1, h_d=1; 1958 long long h_n=1+pVariables; 1959 while ((t=((t*h_n)/h_d))<INT_MAX) 1960 { 1961 h_d++; 1962 h_n++; 1963 } 1964 h_d--; 1965 highdeg = h_d; 1966 //Print("max deg=%d\n",highdeg); 1967 } 1968 1955 1969 /*2 1956 1970 * implementation of LaScala's algorithm … … 2010 2024 } 2011 2025 } 2012 { 2013 highdeg=1; 2014 long long t=1; 2015 long long h_n=1+pVariables; 2016 while ((t=(((long long)t*(long long)h_n)/(long long)highdeg))<INT_MAX) 2017 { 2018 highdeg++; 2019 h_n++; 2020 } 2021 highdeg--; 2022 //Print("max deg=%d\n",highdeg); 2023 } 2026 sySetHighdeg(); 2024 2027 binomials = (int*)Alloc(pVariables*(highdeg+1)*sizeof(int)); 2025 2028 syBinomSet(); … … 2230 2233 } 2231 2234 } 2232 { 2233 highdeg=1; 2234 long long t=1; 2235 long long h_n=1+pVariables; 2236 while ((t=(((long long)t*(long long)h_n)/(long long)highdeg))<INT_MAX) 2237 { 2238 highdeg++; 2239 h_n++; 2240 } 2241 highdeg--; 2242 //Print("max deg=%d\n",highdeg); 2243 } 2235 sySetHighdeg(); 2244 2236 binomials = (int*)Alloc(pVariables*(highdeg+1)*sizeof(int)); 2245 2237 syBinomSet();
Note: See TracChangeset
for help on using the changeset viewer.