public class Variables
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
alpha |
Legal list of characters to start variables.
|
Constructor | Description |
---|---|
Variables() |
|
Variables(java.lang.String[] vars,
double[] nums) |
|
Variables(java.lang.String var,
double num) |
Modifier and Type | Method | Description |
---|---|---|
void |
addVar(java.lang.String var,
double num) |
Add variable to list.
|
double |
getVar(java.lang.String var) |
Get value of variable
|
java.lang.String[] |
getVarList() |
Get list of variables
|
void |
setVar(java.lang.String var,
double num) |
Change value of a variable
|
java.lang.String |
toString() |
Get list of variables and their values.
|
public static final java.lang.String alpha
public Variables()
public Variables(java.lang.String var, double num) throws MathException
MathException
public Variables(java.lang.String[] vars, double[] nums) throws MathException
MathException
public double getVar(java.lang.String var) throws MathException
var
- MathException
public java.lang.String[] getVarList()
public java.lang.String toString()
toString
in class java.lang.Object
public void addVar(java.lang.String var, double num) throws MathException
var
- num
- MathException
public void setVar(java.lang.String var, double num) throws MathException
var
- num
- MathException