Changeset 736288b in git for Singular/ipshell.cc


Ignore:
Timestamp:
Aug 12, 2011, 9:14:57 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d8c7a64f3bcb71205b5fc350abe3a065f1b1576b
Parents:
f5bef2f630405aa4f809d8c3e3d981f72f87a74d
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-08-12 21:14:57+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:12:19+01:00
Message:
FIX: fixed rInit (GF)...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    rf5bef2 r736288b  
    49544954      if ((ch!=0) && (ch!=IsPrime(ch)))
    49554955      {
    4956         int cc=ch;
    4957         // finding the prime
    4958         int p=2;
    4959         int i=0;
    4960         if ((ch%p!=0)  p=3;
    4961         else p=5;
    4962         loop
    4963         {
    4964           if (cc%p==0) break;
    4965           p+=2;
    4966         }
    4967         while(cc>=1) { cc/=p; i++)
    49684956        GFInfo param;
    4969         param.GFDegree=i;
    4970         param.GFChar=p;
    4971         param.GFPar_name=pn->name;
     4957        param.GFDegree = ch;
     4958        param.GFChar   = 1;
     4959       
     4960        param.GFPar_name=pn->name;
    49724961        cf=nInitChar(n_GF,&param);
     4962       
    49734963        if (cf==NULL) goto rInitError;
    49744964        else ffChar=TRUE;
     4965       
    49754966      }
    49764967      /* parameter -------------------------------------------------------*/
Note: See TracChangeset for help on using the changeset viewer.