Changeset e56eb1a in git
- Timestamp:
- Dec 6, 2012, 3:55:39 PM (11 years ago)
- Branches:
- (u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
- Children:
- 9f4478c6aeef3d7c745ba2ee7f65f37f65b2ade5
- Parents:
- 7d62506924687f1914af2e044e72b7886ce66aa3
- git-author:
- Martin Lee <martinlee84@web.de>2012-12-06 15:55:39+01:00
- git-committer:
- Martin Lee <martinlee84@web.de>2012-12-07 10:46:35+01:00
- Location:
- libpolys/polys
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/ext_fields/transext.cc
r7d6250 re56eb1a 1239 1239 void ntNormalize (number &a, const coeffs cf) 1240 1240 { 1241 if ((a!=NULL) &&(DEN(a)!=NULL))1241 if ((a!=NULL)) 1242 1242 { 1243 1243 definiteGcdCancellation(a, cf, FALSE); … … 1862 1862 ntNormalize(n, cf); 1863 1863 1864 fraction f = (fraction)n ;1864 fraction f = (fraction)ntGetDenom (n, cf); 1865 1865 1866 1866 assume( f != NULL ); 1867 1867 1868 const poly den = DEN(f);1868 const poly den = NUM(f); 1869 1869 1870 1870 if( den == NULL ) // ?? / 1 ? … … 1879 1879 // TODO: move the following to factory? 1880 1880 poly gcd = singclap_gcd(p_Copy(cand, R), p_Copy(den, R), R); // gcd(cand, den) is monic no mater leading coeffs! :(((( 1881 if (nCoeff_is_Q (Q)) 1882 { 1883 number LcGcd= n_Gcd (p_GetCoeff (cand, R), p_GetCoeff(den, R), Q); 1884 gcd = p_Mult_nn(gcd, LcGcd, R); 1885 } 1881 1886 // assume( n_IsOne(pGetCoeff(gcd), Q) ); // TODO: this may be wrong... 1882 1887 cand = p_Mult_q(cand, p_Copy(den, R), R); // cand *= den -
libpolys/polys/monomials/p_polys.cc
r7d6250 re56eb1a 1908 1908 static number p_InitContent(poly ph, const ring r); 1909 1909 1910 #define CLEARENUMERATORS 01910 #define CLEARENUMERATORS 1 1911 1911 1912 1912 void p_Content(poly ph, const ring r)
Note: See TracChangeset
for help on using the changeset viewer.