Changeset 98621a5 in git


Ignore:
Timestamp:
Dec 8, 2000, 3:42:37 PM (23 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
0c3e67247d81662592a32fdb1e1d73d073658c88
Parents:
856b116e305edbb0b4ab17b6a00800fac298acbb
Message:
*hannes: napGetExpFrom


git-svn-id: file:///usr/local/Singular/svn/trunk@4847 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/algmap.cc

    r856b11 r98621a5  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: algmap.cc,v 1.19 2000-12-08 12:45:28 Singular Exp $ */
     4/* $Id: algmap.cc,v 1.20 2000-12-08 14:42:37 Singular Exp $ */
    55/*
    66* ABSTRACT - the mapping of polynomials from rings with
     
    4545      for (i=1; i<=t; i++)
    4646      {
    47         napSetExp(b0,i,napGetExp(a0,i));
     47        napSetExp(b0,i,napGetExpFrom(a0,i,r0));
    4848      }
    4949    }
     
    249249    for(i=0; i<s; i++)
    250250    {
    251       if (napGetExp(a0,i+1) != 0)
     251      if (napGetExpFrom(a0,i+1,r) != 0)
    252252      {
    253253        if (F->m[i]!=NULL)
    254254        {
    255           q0 = pPower(pCopy(F->m[i]),napGetExp(a0,i+1));
     255          q0 = pPower(pCopy(F->m[i]),napGetExpFrom(a0,i+1,r));
    256256          q = pMult(q, q0);
    257257        }
  • Singular/longalg.h

    r856b11 r98621a5  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: longalg.h,v 1.20 2000-12-08 13:42:07 Singular Exp $ */
     6/* $Id: longalg.h,v 1.21 2000-12-08 14:42:37 Singular Exp $ */
    77/*
    88* ABSTRACT:   algebraic numbers
     
    9494#define napGetCoeff(p) (p->ko)
    9595#define napGetExp(p,i) ((p)->e[(i)-1])
     96#define napGetExpFrom(p,i,r) ((p)->e[(i)-1])
    9697#define napSetExp(p,i,ee) ((p)->e[(i)-1]=ee)
    9798#define napNew() ((alg)omAlloc0(napMonomSize))
Note: See TracChangeset for help on using the changeset viewer.