Exemplo n.º 1
0
        public void addEquation(LinearEquation e)
        {
            if (this.listOfEquations.Count == 0)
            {
                this.width = e.Array.Length;
            }

            if (e.Array.Length != this.width)
            {
                throw new Exception("Invalid equation added, wrong dimensions!");
            }

            this.listOfEquations.Add(e);
        }
Exemplo n.º 2
0
 public LinearEquation setEquation(int index, LinearEquation e)
 {
     return(listOfEquations[index] = e);
 }
Exemplo n.º 3
0
 public void removeEquation(LinearEquation e)
 {
     this.listOfEquations.Remove(e);
 }