Changeset f52b35d in git


Ignore:
Timestamp:
Mar 4, 2007, 7:24:46 PM (17 years ago)
Author:
Viktor Levandovskyy <levandov@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
112e09d6ab39fad0f75d42a5618b98a6a70f20e3
Parents:
cbc372f1d6bba1dc057875ed3c0faeac5d926e88
Message:
*levandov: ratNF for noncomm rational GB introduced


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

Legend:

Unmodified
Added
Removed
  • Singular/extra.cc

    rcbc372 rf52b35d  
    22*  Computer Algebra System SINGULAR      *
    33*****************************************/
    4 /* $Id: extra.cc,v 1.249 2007-01-11 11:24:12 Singular Exp $ */
     4/* $Id: extra.cc,v 1.250 2007-03-04 18:24:46 levandov Exp $ */
    55/*
    66* ABSTRACT: general interface to internals of Singular ("system" command)
     
    8484#include "sca.h"
    8585#include "ipconv.h"
     86#include "ratgring.h"
    8687#endif
    8788
     
    676677   }
    677678   else
    678    #endif
     679#endif
    679680#ifdef HAVE_PLURAL
    680681/*==================== Approx_Step  =================*/
    681       if (strcmp(sys_cmd, "astep") == 0)
    682       {
    683         ideal I;
    684         if ((h!=NULL) && (h->Typ()==IDEAL_CMD))
    685         {
    686           I=(ideal)h->CopyD();
    687           res->rtyp=IDEAL_CMD;
    688           if (rIsPluralRing(currRing)) res->data=Approx_Step(I);
    689           else res->data=I;
    690           setFlag(res,FLAG_STD);
    691         }
    692         else return TRUE;
    693         return FALSE;
    694       }
     682     if (strcmp(sys_cmd, "astep") == 0)
     683     {
     684       ideal I;
     685       if ((h!=NULL) && (h->Typ()==IDEAL_CMD))
     686       {
     687        I=(ideal)h->CopyD();
     688        res->rtyp=IDEAL_CMD;
     689        if (rIsPluralRing(currRing)) res->data=Approx_Step(I);
     690        else res->data=I;
     691        setFlag(res,FLAG_STD);
     692       }
     693       else return TRUE;
     694       return FALSE;
     695     }
    695696/*==================== PrintMat  =================*/
    696       if (strcmp(sys_cmd, "PrintMat") == 0)
    697       {
     697    if (strcmp(sys_cmd, "PrintMat") == 0)
     698    {
    698699        int a;
    699700        int b;
     
    18661867#include "mpsr.h"
    18671868#include "mod_raw.h"
     1869#include "ratgring.h"
    18681870
    18691871static BOOLEAN jjEXTENDED_SYSTEM(leftv res, leftv h)
     
    26112613      return TRUE;
    26122614    }
     2615    else
     2616/*==================== RatNF, noncomm rational coeffs =================*/
     2617    if (strcmp(sys_cmd, "ratNF") == 0)
     2618    {
     2619      poly p,q;
     2620      int is;
     2621      if ((h!=NULL) && (h->Typ()==POLY_CMD))
     2622      {
     2623        p=(poly)h->CopyD();
     2624        h=h->next;
     2625      }
     2626      else return TRUE;
     2627      if ((h!=NULL) && (h->Typ()==POLY_CMD))
     2628      {
     2629        q=(poly)h->CopyD();
     2630        h=h->next;
     2631      }
     2632      else return TRUE;
     2633      if ((h!=NULL) && (h->Typ()==INT_CMD))
     2634      {
     2635        is=(int)((long)(h->Data()));
     2636        res->rtyp=POLY_CMD;
     2637        if (rIsPluralRing(currRing))
     2638        {
     2639          res->data = nc_rat_ReduceSpolyNew(p, q, is, currRing);
     2640        }
     2641        else res->data=p;
     2642      }
     2643      else return TRUE;
     2644      return FALSE;
     2645    }
     2646    else
    26132647#endif
    26142648/*==================== t-rep-GB ==================================*/
     
    28712905    else
    28722906              */
     2907
     2908
    28732909#endif
    28742910/*==================== Error =================*/
Note: See TracChangeset for help on using the changeset viewer.