Changeset 65fb13 in git


Ignore:
Timestamp:
Mar 20, 2018, 3:50:26 PM (6 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
01a1e69963e02904f3ebb7e48ddd938c9489cc76
Parents:
9118cce767324c1d0bde747134d7ee5cae6df8a5
Message:
add: system("GF",p,p,"a") -> create GF(p^n,a)
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/extra.cc

    r9118cc r65fb13  
    37813781    }
    37823782    else
     3783/*==================== GF(p,n) ==================================*/
     3784    if(strcmp(sys_cmd,"GF")==0)
     3785    {
     3786      const short t[]={3,INT_CMD,INT_CMD,STRING_CMD};
     3787      if (iiCheckTypes(h,t,1))
     3788      {
     3789        int p=(int)(long)h->Data();
     3790        int n=(int)(long)h->next->Data();
     3791        char *v=(char*)h->next->next->CopyD();
     3792        GFInfo param;
     3793        param.GFChar = p;
     3794        param.GFDegree = n;
     3795        param.GFPar_name = v;
     3796        coeffs cf= nInitChar(n_GF, &param);
     3797        res->rtyp=CRING_CMD;
     3798        res->data=cf;
     3799        return FALSE;
     3800      }
     3801      else
     3802        return TRUE;
     3803    }
     3804    else
    37833805/*==================== power* ==================================*/
    37843806    #if 0
  • Singular/subexpr.cc

    r9118cc r65fb13  
    497497      {
    498498        coeffs cf=(coeffs)d;
    499         if ((cf->ref<=1)&&
     499        if ((cf->ref<1)&&
    500500        ((cf->type <=n_GF)
    501501          ||((cf->type >=n_long_C)&&(cf->type <=n_CF))))
Note: See TracChangeset for help on using the changeset viewer.