public class EquationSystem
extends java.lang.Object
| Constructor and Description |
|---|
EquationSystem(int numVariables)
Construct a new equation system.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEquation(java.util.Collection<java.math.BigInteger> coefficients)
Add an equation to the equation system.
|
void |
addEquation(int... coefficients)
Add an equation to the equation system.
|
java.util.Set<java.util.List<java.math.BigInteger>> |
findBasis()
Calculate a basis of the equation system.
|
java.lang.String |
toString() |
public EquationSystem(int numVariables)
numVariables - The number of variables in the equation system.public void addEquation(int... coefficients)
coefficients - List of coefficients for the equation. This must have exactly one entry for each variable
in the equation system.public void addEquation(java.util.Collection<java.math.BigInteger> coefficients)
coefficients - List of coefficients for the equation. This must have exactly one entry for each variable
in the equation system.public java.util.Set<java.util.List<java.math.BigInteger>> findBasis()
public java.lang.String toString()
toString in class java.lang.Object