Changeset 47b559d in git for Singular/extra.cc


Ignore:
Timestamp:
Dec 2, 2010, 12:37:29 PM (13 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
2f2562016613663d129949817c3520b92f72c095
Parents:
35715cbb715ef8f8977fca4b923054147968c0d1
Message:
finished hensel factorization (provided as sys command in extra.cc)

git-svn-id: file:///usr/local/Singular/svn/trunk@13687 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/extra.cc

    r35715c r47b559d  
    633633      if(strcmp(sys_cmd, "henselfactors")==0)
    634634      {
    635         if ((h != NULL) && (h->Typ() == POLY_CMD) &&
    636             (h->next != NULL) && (h->next->Typ() == POLY_CMD) &&
     635        if ((h != NULL) && (h->Typ() == INT_CMD) &&
     636            (h->next != NULL) && (h->next->Typ() == INT_CMD) &&
    637637            (h->next->next != NULL) && (h->next->next->Typ() == POLY_CMD) &&
    638638            (h->next->next->next != NULL) &&
    639                                      (h->next->next->next->Typ() == INT_CMD))
    640         {
    641           poly hh = (poly)h->Data();
    642           poly f0 = (poly)h->next->Data();
    643           poly g0 = (poly)h->next->next->Data();
    644           int d   = (int)(long)h->next->next->next->Data();
     639               (h->next->next->next->Typ() == POLY_CMD) &&
     640            (h->next->next->next->next != NULL) &&
     641               (h->next->next->next->next->Typ() == POLY_CMD) &&
     642            (h->next->next->next->next->next != NULL) &&
     643               (h->next->next->next->next->next->Typ() == INT_CMD) &&
     644            (h->next->next->next->next->next->next == NULL))
     645        {
     646          int xIndex = (int)(long)h->Data();
     647          int yIndex = (int)(long)h->next->Data();
     648          poly hh    = (poly)h->next->next->Data();
     649          poly f0    = (poly)h->next->next->next->Data();
     650          poly g0    = (poly)h->next->next->next->next->Data();
     651          int d      = (int)(long)h->next->next->next->next->next->Data();
    645652          poly f; poly g;
    646           henselFactors(hh, f0, g0, d, f, g);
     653          henselFactors(xIndex, yIndex, hh, f0, g0, d, f, g);
    647654          lists L = (lists)omAllocBin(slists_bin);
    648655          L->Init(2);
     
    655662        else
    656663        {
    657           Werror( "expected argument list (poly, poly, poly, int)");
     664          Werror( "expected argument list (int, int, poly, poly, poly, int)");
    658665          return TRUE;
    659666        }
Note: See TracChangeset for help on using the changeset viewer.