Changeset a07784 in git for factory/facFqBivar.cc


Ignore:
Timestamp:
Dec 5, 2012, 4:03:45 PM (11 years ago)
Author:
Alexander Dreyer <adreyer@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
ae900ff750a6fe0dbab70a5aa87cc48fc3dd280e
Parents:
b3646035aca6a8d660df952d443268649a51090907ff965ddd552fe3a981f417b2da928dca53a8f2
Message:
Merge branch 'spielwiese' of github.com:Singular/Sources into spielwiese-pyobject
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/facFqBivar.cc

    rb36460 ra07784  
    412412                if (recombination)
    413413                {
    414                   appendTestMapDown (result, buf (y - eval, y), info, source,
     414                  buf= buf (y-eval,y);
     415                  buf /= Lc (buf);
     416                  appendTestMapDown (result, buf, info, source,
    415417                                      dest);
    416418                  F= 1;
     
    439441      if (recombination)
    440442      {
    441         appendTestMapDown (result, buf (y - eval, y), info, source, dest);
     443        buf= buf (y-eval,y);
     444        buf /= Lc (buf);
     445        appendTestMapDown (result, buf, info, source, dest);
    442446        F= 1;
    443447        return result;
     
    591595            On (SW_RATIONAL);
    592596          g /= content (g, x);
     597          if (!isRat)
     598          {
     599            On (SW_RATIONAL);
     600            g *= bCommonDen (g);
     601            Off (SW_RATIONAL);
     602            g /= icontent (g);
     603            On (SW_RATIONAL);
     604          }
    593605          if (fdivides (g, buf, quot))
    594606          {
     
    762774            On (SW_RATIONAL);
    763775          g /= content (g, x);
     776          if (!isRat)
     777          {
     778            On (SW_RATIONAL);
     779            g *= bCommonDen (g);
     780            Off (SW_RATIONAL);
     781            g /= icontent (g);
     782            On (SW_RATIONAL);
     783          }
    764784          if (fdivides (g, buf, quot))
    765785          {
     
    17721792    buf /= content (buf, x);
    17731793    buf2= buf (y-evaluation, y);
     1794    buf2 /= Lc (buf2);
    17741795    if (!k && beta == x)
    17751796    {
     
    18521873    buf /= content (buf, x);
    18531874    buf2= buf (y-evaluation, y);
     1875    buf2 /= Lc (buf2);
    18541876    if (!k && beta == x)
    18551877    {
     
    20272049      tmp1= tmp1 (y - evaluation, y);
    20282050      tmp2= tmp2 (y - evaluation, y);
     2051      tmp1 /= Lc (tmp1);
     2052      tmp2 /= Lc (tmp2);
    20292053      if (!k && beta == x && degree (tmp2, alpha) < 1 &&
    20302054          degree (tmp1, alpha) < 1)
     
    20812105    buf /= content (buf, x);
    20822106    buf2= buf (y - evaluation, y);
     2107    buf2 /= Lc (buf2);
    20832108    if (!k && beta == x)
    20842109    {
     
    21562181      tmp1= tmp1 (y - evaluation, y);
    21572182      tmp2= tmp2 (y - evaluation, y);
     2183      tmp1 /= Lc (tmp1);
     2184      tmp2 /= Lc (tmp2);
    21582185      if (!k && beta == x && degree (tmp2, alpha) < 1 &&
    21592186          degree (tmp1, alpha) < 1)
     
    22102237    buf /= content (buf, x);
    22112238    buf2= buf (y - evaluation, y);
     2239    buf2 /= Lc (buf2);
    22122240    if (!k && beta == x)
    22132241    {
     
    35563584  {
    35573585    delete [] bounds;
    3558     CanonicalForm G= F;
     3586    Variable y= Variable (2);
     3587    CanonicalForm tmp= F (y - evaluation, y);
     3588    CFList source, dest;
     3589    tmp= mapDown (tmp, info, source, dest);
    35593590    F= 1;
    3560     return CFList (G);
     3591    return CFList (tmp);
    35613592  }
    35623593
     
    56635694  {
    56645695    i= 1;
    5665     while ((degree (F,y)/4)*i + 4 <= smallFactorDeg)
     5696    while (((degree (F,y)/4)*i+1) + 4 <= smallFactorDeg)
    56665697      i++;
    56675698    while (i < 5)
    56685699    {
    5669       dummy= tmin (degree (F,y)+1, (degree (F,y)/4)*i+4);
     5700      dummy= tmin (degree (F,y)+1, ((degree (F,y)/4)+1)*i+4);
    56705701      if (l < dummy)
    56715702      {
     
    58225853  {
    58235854    i= 1;
    5824     while ((degree (F,y)/4)*i + 4 <= smallFactorDeg)
     5855    while ((degree (F,y)/4+1)*i + 4 <= smallFactorDeg)
    58255856      i++;
    58265857    while (i < 5)
    58275858    {
    5828       dummy= tmin (degree (F,y)+1, (degree (F,y)/4)*i+4);
     5859      dummy= tmin (degree (F,y)+1, (degree (F,y)/4+1)*i+4);
    58295860      if (l < dummy)
    58305861      {
     
    59706001  {
    59716002    i= 1;
    5972     while ((degree (F,y)/4)*i + 4 <= smallFactorDeg)
     6003    while ((degree (F,y)/4+1)*i + 4 <= smallFactorDeg)
    59736004      i++;
    59746005    while (i < 5)
    59756006    {
    5976       dummy= tmin (degree (F,y)+1, (degree (F,y)/4)*i+4);
     6007      dummy= tmin (degree (F,y)+1, (degree (F,y)/4+1)*i+4);
    59776008      if (l < dummy)
    59786009      {
     
    64436474    int factorsFound= 0;
    64446475    if (alpha.level() == 1 || (alpha.level() != 1 && reduceFq2Fp))
    6445       reconstructionTry (result, bufF, bufUniFactors, degree (F) + 1 + degree
    6446 #ifdef HAVE_FLINT
    6447                          (LCF), factorsFound, factorsFoundIndex, FLINTN, false
    6448 #else
    6449                          (LCF), factorsFound, factorsFoundIndex, NTLN, false
     6476      reconstructionTry (result, bufF, bufUniFactors, degree (F) + 1,
     6477#ifdef HAVE_FLINT
     6478                         factorsFound, factorsFoundIndex, FLINTN, false
     6479#else
     6480                         factorsFound, factorsFoundIndex, NTLN, false
    64506481#endif
    64516482                        );
    64526483    else
    6453       reconstructionTry (result, bufF, bufUniFactors, degree (F) + 1 + degree
    6454                          (LCF), factorsFound, factorsFoundIndex, NTLNe, false
     6484      reconstructionTry (result, bufF, bufUniFactors, degree (F) + 1,
     6485                         factorsFound, factorsFoundIndex, NTLNe, false
    64556486                        );
    64566487    if (alpha.level() == 1 || (alpha.level() != 1 && reduceFq2Fp))
     
    68796910  {
    68806911    result= Union (result, smallFactors);
    6881     CanonicalForm MODl= power (y, degree (F) + 1 + degree (LC (F, 1)));
     6912    CanonicalForm MODl= power (y, degree (F) + 1);
    68826913    delete [] bounds;
    68836914    return Union (result, factorRecombination (bufUniFactors, F, MODl, degs, 1,
     
    71327163    return Union (smallFactors, extFactorRecombination
    71337164                                (bufUniFactors, F,
    7134                                  power (y, degree (F) + 1 + degree (LCF)),info,
     7165                                 power (y, degree (F) + 1),info,
    71357166                                 degs, evaluation, 1, bufUniFactors.length()/2
    71367167                                )
     
    71857216    int factorsFound= 0;
    71867217
    7187     extReconstructionTry (result, bufF, bufUniFactors, degree (F) + 1 + degree
    7188                           (LCF), factorsFound, factorsFoundIndex, NTLN, false,
     7218    extReconstructionTry (result, bufF, bufUniFactors, degree (F) + 1,
     7219                          factorsFound, factorsFoundIndex, NTLN, false,
    71897220                          info, evaluation
    71907221                         );
     
    73147345    if (degs.getLength() == 1 || bufUniFactors.length() == 1)
    73157346    {
    7316       result.append (bufF);
     7347      CFList source, dest;
     7348      CanonicalForm tmp= bufF (y - evaluation, y);
     7349      tmp= mapDown (tmp, info, source, dest);
     7350      result.append (tmp);
    73177351      return result;
    73187352    }
     
    73817415  {
    73827416    result= Union (result, smallFactors);
    7383     CanonicalForm MODl= power (y, degree (F) + 1 + degree (LC (F, 1)));
     7417    CanonicalForm MODl= power (y, degree (F) + 1);
    73847418    delete [] bounds;
    73857419    return Union (result, extFactorRecombination (bufUniFactors, F, MODl, info,
     
    76717705    }
    76727706
    7673     if (i == 0)
     7707    if (i == 0 && !extension)
    76747708    {
    76757709      if (subCheck1 > 0)
Note: See TracChangeset for help on using the changeset viewer.