Changeset 51c3da4 in git for Singular/clapsing.cc
- Timestamp:
- Feb 9, 1998, 12:29:05 PM (26 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'd08f5f0bb3329b8ca19f23b74cb1473686415c3a')
- Children:
- 704d81e507ef654e17fd4125305326409c81f229
- Parents:
- e0953a6dff8708da44f4b629d82a76730534ed77
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/clapsing.cc
re0953a r51c3da4 3 3 * Computer Algebra System SINGULAR * 4 4 ****************************************/ 5 // $Id: clapsing.cc,v 1.2 2 1998-01-12 18:59:46 obachmanExp $5 // $Id: clapsing.cc,v 1.23 1998-02-09 11:29:02 Singular Exp $ 6 6 /* 7 7 * ABSTRACT: interface between Singular and factory … … 33 33 // for now there is only the possibility to handle polynomials over 34 34 // Q and Fp ... 35 if ( nGetChar() == 0 || nGetChar() > 1 ) 35 if (( nGetChar() == 0 || nGetChar() > 1 ) 36 && (currRing->parameter==NULL)) 36 37 { 37 38 setCharacteristic( nGetChar() ); … … 60 61 Off(SW_RATIONAL); 61 62 } 63 #if 0 64 else if (( nGetChar()>1 )&&(currRing->parameter!=NULL)) /* GF(q) */ 65 { 66 int p=rChar(currRing); 67 int n=2; 68 int t=p*p; 69 while (t!=nChar) { t*=p;n++; } 70 setCharacteristic(p,n,'a'); 71 CanonicalForm F( convSingGFClapGF( f ) ), G( convSingGFClapGF( g ) ); 72 res= convClapGFSingGF( gcd( F, G ) ); 73 } 74 #endif 62 75 else 63 76 WerrorS( "not implemented" ); … … 79 92 // for now there is only the possibility to handle polynomials over 80 93 // Q and Fp ... 81 if ( nGetChar() == 0 || nGetChar() > 1 ) 94 if (( nGetChar() == 0 || nGetChar() > 1 ) 95 && (currRing->parameter==NULL)) 82 96 { 83 97 setCharacteristic( nGetChar() ); … … 180 194 poly res=NULL,pa=NULL,pb=NULL; 181 195 On(SW_SYMMETRIC_FF); 182 if ( nGetChar() == 0 || nGetChar() > 1 ) 196 if (( nGetChar() == 0 || nGetChar() > 1 ) 197 && (currRing->parameter==NULL)) 183 198 { 184 199 setCharacteristic( nGetChar() ); … … 254 269 poly res=NULL; 255 270 On(SW_RATIONAL); 256 if ( nGetChar() == 0 || nGetChar() > 1 ) 271 if (( nGetChar() == 0 || nGetChar() > 1 ) 272 && (currRing->parameter==NULL)) 257 273 { 258 274 setCharacteristic( nGetChar() ); … … 293 309 else if ( nGetChar() < 0 ) 294 310 setCharacteristic( -nGetChar() ); 295 else 311 else if (currRing->parameter==NULL) /* not GF(q) */ 296 312 setCharacteristic( nGetChar() ); 313 else 314 return; /* not implemented*/ 297 315 if ( f==NULL ) 298 316 { … … 381 399 number N=NULL; 382 400 383 if ( (nGetChar() == 0) || (nGetChar() > 1) ) 401 if (( (nGetChar() == 0) || (nGetChar() > 1) ) 402 && (currRing->parameter==NULL)) 384 403 { 385 404 setCharacteristic( nGetChar() ); … … 542 561 CFList L; 543 562 ListCFList LL; 544 if ( (nGetChar() == 0) || (nGetChar() > 1) ) 563 if (((nGetChar() == 0) || (nGetChar() > 1) ) 564 && (currRing->parameter==NULL)) 545 565 { 546 566 setCharacteristic( nGetChar() ); … … 606 626 On(SW_SYMMETRIC_FF); 607 627 CFList L; 608 if ( (nGetChar() == 0) || (nGetChar() > 1) ) 628 if (((nGetChar() == 0) || (nGetChar() > 1) ) 629 && (currRing->paramyer==NULL)) 609 630 { 610 631 setCharacteristic( nGetChar() ); … … 669 690 Off(SW_RATIONAL); 670 691 // Q / Fp 671 if ( (nGetChar() == 0) || (nGetChar() > 1) ) 692 if (((nGetChar() == 0) || (nGetChar() > 1) ) 693 &&(currRing->parameter==NULL)) 672 694 { 673 695 setCharacteristic( nGetChar() ); … … 714 736 } 715 737 poly res=NULL; 716 if ( nGetChar() == 0 || nGetChar() > 1 ) 738 if (( nGetChar() == 0 || nGetChar() > 1 ) 739 && (currRing->parameter==NULL)) 717 740 { 718 741 setCharacteristic( nGetChar() );
Note: See TracChangeset
for help on using the changeset viewer.