Package maths
Class TMono
- java.lang.Object
-
- maths.TMono
-
public class TMono extends java.lang.ObjectRepresents a monomial in a polynomial.
-
-
Constructor Summary
Constructors Constructor Description TMono()Default constructor.TMono(int x, int val, int deg)Constructs a monomial with the specified variable, value, and degree.TMono(int x, java.math.BigInteger val, int deg)Constructs a monomial with the specified variable, value, and degree.TMono(int x, TMono coef, int deg)Constructs a monomial with the specified variable, coefficient, and degree.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longvalue()Returns the value of the monomial.
-
-
-
Constructor Detail
-
TMono
public TMono()
Default constructor.
-
TMono
public TMono(int x, java.math.BigInteger val, int deg)Constructs a monomial with the specified variable, value, and degree.- Parameters:
x- the variableval- the valuedeg- the degree
-
TMono
public TMono(int x, int val, int deg)Constructs a monomial with the specified variable, value, and degree.- Parameters:
x- the variableval- the valuedeg- the degree
-
TMono
public TMono(int x, TMono coef, int deg)Constructs a monomial with the specified variable, coefficient, and degree.- Parameters:
x- the variablecoef- the coefficientdeg- the degree
-
-