3030 * You should have received a copy of the GNU General Public License along
3131 * with FORM. If not, see <http://www.gnu.org/licenses/>.
3232 */
33- /* #] License : */
33+ /* #] License : */
3434
3535#include " poly.h"
3636#include " polygcd.h"
@@ -100,7 +100,7 @@ WORD poly_determine_modulus (PHEAD bool multi_error, bool is_fun_arg, string mes
100100}
101101
102102/*
103- #] poly_determine_modulus :
103+ #] poly_determine_modulus :
104104 #[ poly_gcd :
105105*/
106106
@@ -152,7 +152,7 @@ WORD *poly_gcd(PHEAD WORD *a, WORD *b) {
152152}
153153
154154/*
155- #] poly_gcd :
155+ #] poly_gcd :
156156 #[ poly_divmod :
157157*/
158158
@@ -231,7 +231,9 @@ WORD *poly_divmod(PHEAD WORD *a, WORD *b, int divmod) {
231231
232232 // divide and determine the power
233233 poly ppow (pa/pb);
234+ #ifdef DEBUG
234235 cout << pa << " / " << pb << " = " << ppow << endl;
236+ #endif
235237 for (int i=1 ; i<ppow[0 ]; i+=ppow[i])
236238 denompower = max (denompower, DENOMPOWER - ppow[i+AN.poly_num_vars ]);
237239
@@ -329,7 +331,7 @@ WORD *poly_divmod(PHEAD WORD *a, WORD *b, int divmod) {
329331}
330332
331333/*
332- #] poly_divmod :
334+ #] poly_divmod :
333335 #[ poly_div :
334336
335337 Routine divides the expression in arg1 by the expression in arg2.
@@ -349,7 +351,7 @@ WORD *poly_div(PHEAD WORD *a, WORD *b) {
349351}
350352
351353/*
352- #] poly_div :
354+ #] poly_div :
353355 #[ poly_rem :
354356
355357 Routine divides the expression in arg1 by the expression in arg2
@@ -372,7 +374,7 @@ WORD *poly_rem(PHEAD WORD *a, WORD *b) {
372374}
373375
374376/*
375- #] poly_rem :
377+ #] poly_rem :
376378 #[ poly_ratfun_read :
377379*/
378380
@@ -458,7 +460,7 @@ void poly_ratfun_read (WORD *a, poly &num, poly &den) {
458460}
459461
460462/*
461- #] poly_ratfun_read :
463+ #] poly_ratfun_read :
462464 #[ poly_sort :
463465*/
464466
@@ -500,7 +502,7 @@ void poly_sort(PHEAD WORD *a) {
500502}
501503
502504/*
503- #] poly_sort :
505+ #] poly_sort :
504506 #[ poly_ratfun_add :
505507*/
506508
@@ -605,7 +607,7 @@ WORD *poly_ratfun_add (PHEAD WORD *t1, WORD *t2) {
605607}
606608
607609/*
608- #] poly_ratfun_add :
610+ #] poly_ratfun_add :
609611 #[ poly_ratfun_normalize :
610612*/
611613
@@ -733,7 +735,7 @@ int poly_ratfun_normalize (PHEAD WORD *term) {
733735}
734736
735737/*
736- #] poly_ratfun_normalize :
738+ #] poly_ratfun_normalize :
737739 #[ poly_fix_minus_signs :
738740*/
739741
@@ -784,7 +786,7 @@ void poly_fix_minus_signs (factorized_poly &a) {
784786}
785787
786788/*
787- #] poly_fix_minus_signs :
789+ #] poly_fix_minus_signs :
788790 #[ poly_factorize :
789791*/
790792
@@ -910,7 +912,7 @@ WORD *poly_factorize (PHEAD WORD *argin, WORD *argout, bool with_arghead, bool i
910912}
911913
912914/*
913- #] poly_factorize :
915+ #] poly_factorize :
914916 #[ poly_factorize_argument :
915917*/
916918
@@ -937,7 +939,7 @@ int poly_factorize_argument(PHEAD WORD *argin, WORD *argout) {
937939}
938940
939941/*
940- #] poly_factorize_argument :
942+ #] poly_factorize_argument :
941943 #[ poly_factorize_dollar :
942944*/
943945
@@ -963,7 +965,7 @@ WORD *poly_factorize_dollar (PHEAD WORD *argin) {
963965}
964966
965967/*
966- #] poly_factorize_dollar :
968+ #] poly_factorize_dollar :
967969 #[ poly_factorize_expression :
968970*/
969971
@@ -1311,7 +1313,7 @@ int poly_factorize_expression(EXPRESSIONS expr) {
13111313}
13121314
13131315/*
1314- #] poly_factorize_expression :
1316+ #] poly_factorize_expression :
13151317 #[ poly_unfactorize_expression :
13161318*/
13171319
@@ -1541,7 +1543,7 @@ int poly_unfactorize_expression(EXPRESSIONS expr)
15411543}
15421544
15431545/*
1544- #] poly_unfactorize_expression :
1546+ #] poly_unfactorize_expression :
15451547 #[ poly_inverse :
15461548*/
15471549
@@ -1671,5 +1673,5 @@ WORD *poly_inverse(PHEAD WORD *arga, WORD *argb) {
16711673}
16721674
16731675/*
1674- #] poly_inverse :
1676+ #] poly_inverse :
16751677*/
0 commit comments