Changeset 42af82e in git
- Timestamp:
- May 26, 1999, 4:16:50 PM (24 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 2f15859f9d82f734fb754fef4da141107ae571f2
- Parents:
- 0dee965e6435c14eae946a84cbde644ad0008205
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/polys1.cc
r0dee96 r42af82e 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: polys1.cc,v 1.2 1 1999-04-29 11:38:55 SingularExp $ */4 /* $Id: polys1.cc,v 1.22 1999-05-26 14:16:50 obachman Exp $ */ 5 5 6 6 /* … … 999 999 poly qq,result = NULL; 1000 1000 1001 #if 0 1001 1002 while (p != NULL) 1002 1003 { … … 1008 1009 pTest(result); 1009 1010 } 1011 #else 1012 while (p != NULL) 1013 { 1014 qq = p; 1015 pIter(p); 1016 qq->next = result; 1017 result = qq; 1018 pSetm(qq); 1019 } 1020 p = result; 1021 result = NULL; 1022 while (p != NULL) 1023 { 1024 qq = p; 1025 pIter(p); 1026 qq->next = NULL; 1027 result = pAdd(result, qq); 1028 } 1029 pTest(result); 1030 #endif 1010 1031 return result; 1011 1032 } … … 1073 1094 pTest(qq); 1074 1095 pTest(aq); 1075 if (aq!=NULL) 1076 { 1077 qq=pMult(aq,qq); 1078 aq=NULL; 1079 } 1080 result = pAdd(result,qq); 1081 pTest(result); 1096 if (aq!=NULL) qq=pMult(aq,qq); 1097 aq = qq; 1098 while (pNext(aq) != NULL) pIter(aq); 1099 pNext(aq) = result; 1100 aq = NULL; 1101 result = qq; 1082 1102 } 1083 1103 else if (aq!=NULL) … … 1086 1106 } 1087 1107 } 1108 p = result; 1109 result = NULL; 1110 while (p != NULL) 1111 { 1112 qq = p; 1113 pIter(p); 1114 qq->next = NULL; 1115 result = pAdd(result, qq); 1116 } 1117 pTest(result); 1088 1118 return result; 1089 1119 }
Note: See TracChangeset
for help on using the changeset viewer.