File: term.h

package info (click to toggle)
gfan 0.3dfsg-1
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 2,012 kB
  • ctags: 1,935
  • sloc: cpp: 17,728; makefile: 251
file content (20 lines) | stat: -rw-r--r-- 421 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef TERM_H_INCLUDED
#define TERM_H_INCLUDED

#include "field.h"
#include "monomial.h"
#include "polynomialring.h"

class Term
{
  PolynomialRing theRing;
 public:
  Monomial m;
  FieldElement c;
  Term(PolynomialRing const &r):theRing(r),m(r),c(r.getField()){};
    Term(FieldElement const &c_, Monomial const &m_);
  void operator*=(const Term &t);
  PolynomialRing const &getRing()const{return theRing;}
};

#endif