public void SetIndependentVariable(string name, double val) { prmtrs[name].SetConstantVal(val); functions[prmtrs[name]] = new Evaluator(val); }
public void SetSystemZero(string name, Evaluator function) { prmtrs[name].SetDependencies(function.Dependencies); functions[prmtrs[name]] = function; if (function.Dependencies.Where(i => i.ParameterName == name).Count() == 0) { throw new Exception("This parameter is not self dependent."); } }
public void SetDependentVariable(string name, Evaluator function) { prmtrs[name].SetDependencies(function.Dependencies); functions[prmtrs[name]] = function; if (function.Dependencies.Where(i => i.ParameterName == name).Count() > 0) { throw new Exception("This parameter is self dependent. Should be set to zero."); } }