Beispiel #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);
        }
        /// <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;

        }