Changeset 58e9e0 in git for Singular/iparith.cc


Ignore:
Timestamp:
Jul 26, 1999, 7:03:54 PM (25 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'dce4ad324f6e216ae93a99713959b505fb6213d3')
Children:
dd70e71ba5dc277b4fe6a0632569149de3fadbef
Parents:
9050cae84ee67262b9d08045bac6f3b36c2cc66b
Message:
* hannes: subst(ob,x_1,v_1,x_2,v_2,....)


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

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r9050ca r58e9e0  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iparith.cc,v 1.163 1999-07-23 13:45:15 Singular Exp $ */
     4/* $Id: iparith.cc,v 1.164 1999-07-26 17:03:54 Singular Exp $ */
    55
    66/*
     
    284284  { "std",         0, STD_CMD ,           CMD_123},
    285285  { "string",      0, STRING_CMD ,        ROOT_DECL_LIST},
    286   { "subst",       0, SUBST_CMD ,         CMD_3},
     286  { "subst",       0, SUBST_CMD ,         CMD_M},
    287287  { "system",      0, SYSTEM_CMD,         CMD_M},
    288288  { "syz",         0, SYZYGY_CMD ,        CMD_1},
     
    47194719}
    47204720#endif
     4721static BOOLEAN jjSUBST_M(leftv res, leftv u)
     4722{
     4723  leftv v = u->next;
     4724  leftv w = v->next;
     4725  leftv rest = w->next;
     4726
     4727  u->next = NULL;
     4728  v->next = NULL;
     4729  w->next = NULL;
     4730  BOOLEAN b = iiExprArith3(res, iiOp, u, v, w);
     4731  if ((rest!=NULL) && (!b))
     4732  {
     4733    sleftv tmp_res;
     4734    leftv tmp_next=res->next;
     4735    res->next=rest;
     4736    memset(&tmp_res,0,sizeof(tmp_res));
     4737    b = iiExprArithM(&tmp_res,iiOp,res);
     4738    memcpy(res,&tmp_res,sizeof(tmp_res));
     4739    res->next=tmp_next;
     4740  } 
     4741  u->next = v;
     4742  v->next = w;
     4743  w->next = rest;
     4744  return b;
     4745}
    47214746
    47224747#ifdef HAVE_NAMESPACES
     
    48284853,{jjRESERVED0, RESERVEDNAME_CMD, NONE,               0 }
    48294854,{jjSTRING_PL, STRING_CMD,      STRING_CMD,         -1 }
     4855,{jjCALL3ARG,  SUBST_CMD,       NONE/*set by p*/,   3 }
     4856,{jjSUBST_M,   SUBST_CMD,       NONE/*set by p*/,   -2 }
    48304857,{jjSYSTEM,    SYSTEM_CMD,      NONE/*or set by p*/,-2 }
    48314858,{jjTEST,      TEST_CMD,        NONE,               -2 }
Note: See TracChangeset for help on using the changeset viewer.