Changeset ffdd694 in git for kernel/clapsing.cc
- Timestamp:
- Apr 14, 2005, 10:19:18 AM (18 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- dee0c0bfc5091a87dbbbefd919c1b23da3276c0a
- Parents:
- 6fdd4ac98b7f7b14b745342085283579f7b15c9d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/clapsing.cc
r6fdd4a rffdd694 3 3 * Computer Algebra System SINGULAR * 4 4 ****************************************/ 5 // $Id: clapsing.cc,v 1. 6 2005-04-13 16:38:10Singular Exp $5 // $Id: clapsing.cc,v 1.7 2005-04-14 08:19:18 Singular Exp $ 6 6 /* 7 7 * ABSTRACT: interface between Singular and factory … … 741 741 CFFList L; 742 742 number N=NULL; 743 number NN=NULL; 743 744 CanonicalForm T_F(0); 744 745 number old_lead_coeff=nCopy(pGetCoeff(f)); 745 746 747 if (!rField_is_Zp()) /* Q, Q(a), Zp(a) */ 748 { 749 //if (f!=NULL) // already tested at start of routine 750 { 751 number n0=nCopy(pGetCoeff(f)); 752 if (with_exps==0) 753 N=nCopy(n0); 754 pCleardenom(f); 755 NN=nDiv(n0,pGetCoeff(f)); 756 nDelete(&n0); 757 if (with_exps==0) 758 { 759 nDelete(&N); 760 N=nCopy(NN); 761 } 762 } 763 } 746 764 if (rField_is_Q() || rField_is_Zp()) 747 765 { 748 766 setCharacteristic( nGetChar() ); 749 if (nGetChar()==0) /* Q */750 {751 //if (f!=NULL) // already tested at start of routine752 {753 pCleardenom_n(f,N);754 }755 }756 767 CanonicalForm F( convSingPClapP( f ) ); 757 768 T_F=F; … … 791 802 if (rField_is_Q_a()) setCharacteristic( 0 ); 792 803 else setCharacteristic( -nGetChar() ); 793 pCleardenom_n(f,N);794 804 if (currRing->minpoly!=NULL) 795 805 { … … 972 982 { 973 983 pMult_nn(res->m[0],N); 984 nDelete(&N); 985 N=NULL; 974 986 } 975 987 // delete constants … … 1046 1058 if (res==NULL) 1047 1059 WerrorS( feNotImplemented ); 1048 if (N!=NULL) 1049 { 1050 number NN=nInvers(N); 1060 if (NN!=NULL) 1061 { 1051 1062 pMult_nn(f,NN); 1052 1063 nDelete(&NN); 1064 } 1065 if (N!=NULL) 1066 { 1053 1067 nDelete(&N); 1054 1068 }
Note: See TracChangeset
for help on using the changeset viewer.