Ejemplo n.º 1
0
 RingElem IndetPower(const PolyRing& P, long var, long exp)  // error if exp < 0
 {
   P->myCheckIndetIndex(var, "IndetPower(P, var, exp)");
   if (exp < 0) CoCoA_ERROR(ERR::NegExp, "IndetPower(P, var, exp)");
   RingElem ans(P, 1);
   P->myIndetPower(raw(ans), var, exp);
   return ans;
 }
Ejemplo n.º 2
0
 RingElem deriv(ConstRefRingElem f, long x) // here x is the index of the variable
 {
   const PolyRing Rx = owner(f);
   Rx->myCheckIndetIndex(x, "deriv(f, x)");
   return deriv(f, indet(Rx, x));
 }