Ejemplo n.º 1
0
        //Using ToString instead of ToStringSimplified might be better when doing math operations
        public override string ToString()
        {
            string coef = "", var = "", pow = "";

            coef = Coef.ToString();
            pow  = "^" + Power.ToString();
            if (!VariableSymbol.Equals(DefaultVariableSymbol))
            {
                var = VariableSymbol.ToString();
            }
            return(string.Format("{0}{1}{2}", coef, var, pow));
        }