Changeset c880d63 in git for Singular/modulop.cc
- Timestamp:
- Nov 16, 2000, 5:56:20 PM (24 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38dfc5131670d387a89455159ed1e071997eec94')
- Children:
- 62fd53cec458e099a9121f16ac8739afbec4235d
- Parents:
- 133c5d3687bc9924340e9a7cbd2da5491585849a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/modulop.cc
r133c5d rc880d63 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: modulop.cc,v 1.1 7 2000-09-18 09:19:18 obachmanExp $ */4 /* $Id: modulop.cc,v 1.18 2000-11-16 16:54:25 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: numbers modulo p (<=32003) … … 47 47 number npInit (int i) 48 48 { 49 while (i < 0) i += npPrimeM;50 while ( i >= npPrimeM) i -= npPrimeM;49 while (i < 0) i += npPrimeM; 50 while ((i>1) && (i >= npPrimeM)) i -= npPrimeM; 51 51 return (number)i; 52 52 } … … 201 201 */ 202 202 203 void npSetChar(int c )203 void npSetChar(int c, ring r) 204 204 { 205 205 int i, w;
Note: See TracChangeset
for help on using the changeset viewer.