Exemplo n.º 1
0
        /// <summary>
        /// Creates the FunctionGrapher for the calling IFunction object.
        /// </summary>
        /// <param name="func"></param>
        /// <returns></returns>
        public static FunctionGrapher CreateFunctionGrapher(this IFunction <double, double> func)
        {
            FunctionGrapher grapher = new FunctionGrapher(func);

            if (func is AnalyticFunction)
            {
                grapher.Name = (func as AnalyticFunction).FunctionString;
            }

            return(grapher);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Creates the FunctionGrapher for the calling IFunction object.
        /// </summary>
        /// <param name="func"></param>
        /// <returns></returns>
        public static FunctionGrapher CreateFunctionGrapher(this IFunction<double, double> func)
        {
            FunctionGrapher grapher = new FunctionGrapher(func);

            if (func is AnalyticFunction)
                grapher.Name = (func as AnalyticFunction).FunctionString;

            return grapher;

        }