Exemplo n.º 1
0
        // Returns the Ordinate o in a friendly string form for the formula string of the integration algorithm
        protected string GetOrdinateForFormula(Ordinate o)
        {
            if (o.Y < 0)
            {
                return(" " + Math.Round(o.Y, 4));
            }

            // If the Y value is not negative, manually add a plus sign to the beginning
            return(" + " + Math.Round(o.Y, 4));
        }
        // Returns the Ordinate o in a friendly string form for the formula string of the integration algorithm
        protected string GetOrdinateForFormula(Ordinate o)
        {
            if (o.Y < 0)
                return " " + Math.Round(o.Y, 4);

            // If the Y value is not negative, manually add a plus sign to the beginning
            return " + " + Math.Round(o.Y, 4);
        }