Modifier and Type | Field and Description |
---|---|
protected double |
value |
Constructor and Description |
---|
Var()
Constructs a
Var with the initial value 0. |
Var(double value)
Constructs a
Var with a given value . |
Modifier and Type | Method and Description |
---|---|
double |
calculate(double... values)
Calculates the result of this
Term . |
double |
getValue()
Returns the value.
|
void |
setValue(double value)
Sets the value.
|
public Var()
Var
with the initial value 0.public Var(double value)
Var
with a given value
.value
- the value