Changeset ba35e5 in git
- Timestamp:
- Jun 29, 1998, 3:16:37 PM (26 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 4f1744fee0f9986566e8c71d55ad66e9d64d82bd
- Parents:
- caa6f48c8467decdf3e08f37573afde7096c6902
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/syz1.cc
rcaa6f4 rba35e5 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: syz1.cc,v 1.2 8 1998-05-14 13:04:21 SingularExp $ */4 /* $Id: syz1.cc,v 1.29 1998-06-29 13:16:37 pohl Exp $ */ 5 5 /* 6 6 * ABSTRACT: resolutions … … 2562 2562 static void sySetHighdeg() 2563 2563 { 2564 #ifdef __MWERKS__ 2565 const double m=(double)INT_MAX; 2566 double t=1.0; 2567 unsigned int h_d=1; 2568 unsigned int h_n=1+pVariables; 2569 loop 2570 { 2571 t *=(double)h_n; 2572 t /=(double)h_d; 2573 if (t>=m) break; 2574 h_d++; 2575 h_n++; 2576 } 2577 h_d--; 2578 highdeg = h_d; 2579 #else 2564 2580 long long t=1, h_d=1; 2565 2581 long long h_n=1+pVariables; … … 2571 2587 h_d--; 2572 2588 highdeg = h_d; 2589 #endif 2573 2590 //Print("max deg=%d\n",highdeg); 2574 2591 }
Note: See TracChangeset
for help on using the changeset viewer.