public void AddEqnCoef(string variable, EqnCoef eqnCoef) { if (eqnCoefs != null) { if (eqnCoefs.ContainsKey(variable)) { eqnCoefs[variable] = eqnCoef; } else { eqnCoefs.Add(variable, eqnCoef); } } }
public EqnCoef(EqnCoef toCopy) { this.rawText = toCopy.rawText; this.tokens = new List <string>(toCopy.tokens); }
public void AddEqnCoef(string variable, List <string> tokens) { EqnCoef x = new EqnCoef(tokens); AddEqnCoef(variable, x); }