Changeset 4732f8 in git for Singular/extra.cc


Ignore:
Timestamp:
Feb 21, 2009, 8:30:56 PM (15 years ago)
Author:
Viktor Levandovskyy <levandov@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
cce4a2f69a8341c6b8fbb3f1e78b41bf26ed7970
Parents:
28f16452ba2351e155e944280a5d83ffdfd1ffc8
Message:
*levandov: ncratCreateSpoly added


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

Legend:

Unmodified
Added
Removed
  • Singular/extra.cc

    r28f164 r4732f8  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: extra.cc,v 1.295 2009-02-21 15:25:43 levandov Exp $ */
     4/* $Id: extra.cc,v 1.296 2009-02-21 19:30:56 levandov Exp $ */
    55/*
    66* ABSTRACT: general interface to internals of Singular ("system" command)
     
    27052705    }
    27062706    else
     2707/*==================== RatSpoly, noncomm rational coeffs =================*/
     2708    if (strcmp(sys_cmd, "ratSpoly") == 0)
     2709    {
     2710      poly p,q;
     2711      int is;
     2712      if ((h!=NULL) && (h->Typ()==POLY_CMD))
     2713      {
     2714        p=(poly)h->CopyD();
     2715        h=h->next;
     2716      }
     2717      else return TRUE;
     2718      if ((h!=NULL) && (h->Typ()==POLY_CMD))
     2719      {
     2720        q=(poly)h->CopyD();
     2721        h=h->next;
     2722      }
     2723      else return TRUE;
     2724      if ((h!=NULL) && (h->Typ()==INT_CMD))
     2725      {
     2726        is=(int)((long)(h->Data()));
     2727        res->rtyp=POLY_CMD;
     2728        //      res->rtyp=IDEAL_CMD;
     2729        if (rIsPluralRing(currRing))
     2730        {
     2731          res->data = nc_rat_CreateSpoly(p,q,is,currRing);
     2732          //    res->data = ncGCD(p,q,currRing);       
     2733        }
     2734        else res->data=p;
     2735      }
     2736      else return TRUE;
     2737      return FALSE;
     2738    }
     2739    else
    27072740#endif // HAVE_RATGRING
    27082741/*==================== Rat def =================*/
Note: See TracChangeset for help on using the changeset viewer.