Changeset 1e3205 in git
- Timestamp:
- Apr 15, 1998, 6:15:01 PM (25 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 0f678f9af2ce804297ea85555d74aeef2879cded
- Parents:
- 8677912280afed4016cd16f860024d5d2390f1e7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/clapsing.cc
r8677912 r1e3205 3 3 * Computer Algebra System SINGULAR * 4 4 ****************************************/ 5 // $Id: clapsing.cc,v 1.2 6 1998-03-31 09:00:43Singular Exp $5 // $Id: clapsing.cc,v 1.27 1998-04-15 16:15:01 Singular Exp $ 6 6 /* 7 7 * ABSTRACT: interface between Singular and factory … … 26 26 poly singclap_gcd ( poly f, poly g ) 27 27 { 28 if ((f==NULL)||(g==NULL)) 29 return pOne(); 28 if (f==NULL) 29 { 30 if(g==NULL) 31 return NULL; 32 else 33 return pCopy(g); 34 } 35 else if (g==NULL) 36 return pCopy(f); 30 37 31 38 poly res=NULL; … … 77 84 #endif 78 85 else 79 WerrorS( "not implemented");86 WerrorS( feNotImplemented ); 80 87 81 88 pDelete(&f); … … 92 99 return NULL; 93 100 } 94 Variable X(i);95 101 // for now there is only the possibility to handle polynomials over 96 102 // Q and Fp ... … … 98 104 && (currRing->parameter==NULL)) 99 105 { 106 Variable X(i); 100 107 setCharacteristic( nGetChar() ); 101 108 CanonicalForm F( convSingPClapP( f ) ), G( convSingPClapP( g ) ); … … 113 120 if (currRing->minpoly!=NULL) 114 121 { 122 Variable X(i); 115 123 CanonicalForm mipo=convSingTrClapP(((lnumber)currRing->minpoly)->z); 116 124 Variable a=rootOf(mipo); … … 120 128 else 121 129 { 130 Variable X(i+rPar(currRing)); 122 131 CanonicalForm F( convSingTrPClapP( f ) ), G( convSingTrPClapP( g ) ); 123 132 res= convClapPSingTrP( resultant( F, G, X ) ); … … 127 136 } 128 137 else 129 WerrorS( "not implemented");138 WerrorS( feNotImplemented ); 130 139 return NULL; 131 140 } … … 252 261 else 253 262 { 254 WerrorS( "not implemented");263 WerrorS( feNotImplemented ); 255 264 return NULL; 256 265 } … … 299 308 } 300 309 else 301 WerrorS( "not implemented");310 WerrorS( feNotImplemented ); 302 311 Off(SW_RATIONAL); 303 312 return res; … … 445 454 //if (nGetChar()==1) 446 455 //{ 447 // WerrorS( "not implemented");456 // WerrorS( feNotImplemented ); 448 457 // return NULL; 449 458 //} … … 472 481 else 473 482 { 474 WerrorS( "not implemented");483 WerrorS( feNotImplemented ); 475 484 goto end; 476 485 } … … 586 595 else 587 596 { 588 WerrorS( "not implemented");597 WerrorS( feNotImplemented ); 589 598 return res; 590 599 } … … 651 660 else 652 661 { 653 WerrorS( "not implemented");662 WerrorS( feNotImplemented ); 654 663 return NULL; 655 664 } … … 725 734 { 726 735 err: 727 WerrorS( "not implemented");736 WerrorS( feNotImplemented ); 728 737 } 729 738 return b; … … 790 799 } 791 800 else 792 WerrorS( "not implemented");801 WerrorS( feNotImplemented ); 793 802 Off(SW_RATIONAL); 794 803 return res; … … 880 889 { 881 890 res->data=singclap_resultant((poly)u->Data(),(poly)v->Data(), (poly)w->Data()); 882 return (res->data==NULL);891 return errorreported; 883 892 } 884 893 BOOLEAN jjCHARSERIES(leftv res, leftv u)
Note: See TracChangeset
for help on using the changeset viewer.