
/*
 * Computer Algebra Kit (c) 1993,98 by Comp.Alg.Objects.  All Rights Reserved.
 * $Id: mdrdpolc.h,v 1.5 1998/08/29 10:19:54 stes Exp $
 */

#ifndef __modp_vardnsrecdegdns_polynomial_header__
#define __modp_vardnsrecdegdns_polynomial_header__

#include "drdpolc.h"

typedef modpseq_t modp_vardnsrecdegdnspolseq_t;

typedef struct modp_vardnsrecdegdnspol {
  int n;
  int c;
  modp_vardnsrecdegdnspolseq_t ptr;
} *modp_vardnsrecdegdnspol_t;

typedef struct modp_vardnsrecdegdnspol modp_vardnsrecdegdnspol_c;
typedef struct {
  modp_args sargs;
} modp_vardnsrecdegdnspol_args;

typedef struct modp_vardnsrecdegdnspol_ix {
  int i;
  int n;
} *modp_vardnsrecdegdnspol_ixt;

#define modp_vardnsrecdegdnspol_isvalue	0
#define modp_vardnsrecdegdnspol_pervalue	0

@interface modp_vardnsrecdegdns_polynomial : vardnsrecdegdns_polynomial
{
  id scalarZero;
  id termZero;
  id monomialZero;
  id symbols;
  modp_vardnsrecdegdnspol_c value;
}

- _setUpScalarZero:aScalar coefficientZero:aCoef symbols:aCltn;
+ scalarZero:aScalar coefficientZero:aCoef symbols:aCltn;
- empty;
- (int) numTerms;
- (modp_vardnsrecdegdnspol_t)modp_vardnsrecdegdnspol_value;
- modp_vardnsrecdegdnspol_value:(modp_vardnsrecdegdnspol_t)aValue;
- (modp_vardnsrecdegdnspol_t)modp_vardnsrecdegdnspol_reference;
- modp_vardnsrecdegdnspol_reference:(modp_vardnsrecdegdnspol_c *)aReference;

- copy;
- deepCopy;
- (BOOL) isEmpty;
- (BOOL) isOne;
- (BOOL) isMinusOne;
- (unsigned) hash;
- (BOOL) isEqual:b;
- (BOOL) notEqual:b;
- (BOOL) isZero;
- (BOOL) notZero;
- (BOOL) isOpposite:b;
- (BOOL) notOpposite:b;
- negate;
- negateSelf;
- _double:(int)v;
- _doubleSelf:(int)v;
- double;
- doubleSelf;
- _add:(int)v:b:(int)w;
- _addSelf:(int)v:b:(int)w;
- add:b;
- addSelf:b;
- subtract:b;
- subtractSelf:b;
- (int) leadingDegree;
- (int) lastDegree;
- (int) maxDegree;
- (int) minDegree;
- asScalar;
- asSymbol;
- check;
- clear;
- clone;
- eachTerm;
- elt_modp_vardnsrecdegdnspol_ix:(modp_vardnsrecdegdnspol_ixt)ix;
- removeTerm;
- insertTerm:aTerm;
- multiplyCoefficient:s;
- multiplySelfCoefficient:s;
- divideCoefficient:s;
- divideSelfCoefficient:s;
- _add:(int)v:B multiplyCoefficient:b:(int)w;
- _addSelf:(int)v:B multiplyCoefficient:b:(int)w;
- _multiplyCoefficient:a:(int)v add:B:(int)w;
- _multiplySelfCoefficient:a:(int)v add:B:(int)w;
- _multiplyCoefficient:a:(int)v add:B multiplyCoefficient:b:(int)w;
- _multiplySelfCoefficient:a:(int)v add:B multiplyCoefficient:b:(int)w;
- multiplyTerm:aTerm;
- multiplySelfTerm:aTerm;
- _multiplyTerm:aTerm:(int)v;
- _multiplySelfTerm:aTerm:(int)v;
- divideTerm:aTerm;
- divideSelfTerm:aTerm;
- _add:(int)v:B multiplyTerm:b:(int)w;
- _addSelf:(int)v:B multiplyTerm:b:(int)w;
- _multiplyCoefficient:a:(int)v add:B multiplyTerm:b:(int)w;
- _multiplySelfCoefficient:a:(int)v add:B multiplyTerm:b:(int)w;

- fileOutOn:aFiler;
- fileInFrom:aFiler;
@end

#endif				/* __modpscal_vardnsrecdegdns_polynomial_header__ */

