public class Term
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object term)
Indicates whether some other object is "equal to" this one.
|
double |
getCoeff()
Gets the coefficient of the term.
|
Variable |
getVar()
Gets the variable of the term.
|
java.lang.String |
toString() |
public Term(double coeff,
Variable var)
public Variable getVar()
public double getCoeff()
public boolean equals(java.lang.Object term)
equals in class java.lang.Objectterm - The reference object with which to compare.public java.lang.String toString()
toString in class java.lang.Object