public Monomial(double value) { Variables = new ElementsMul { Elements = new List <Element>() { new Element() { Variable = 0, Pow = 0 } } }; Coef = value; }
public Monomial(int id, double value) { Variables = new ElementsMul { Elements = new List <Element>() { new Element() { Variable = id, Pow = 1 } } }; Coef = value; }