public Symbol(CustomFunction func) { type = SymbolType.FuncCustom; customFunc = func; }
public void AddCustomFunction(string name, System.Func <double, double> func, bool enableSymbolicationTimeEvaluation = false) { customFuncs[name] = new CustomFunction(name, func, enableSymbolicationTimeEvaluation); }
public void AddCustomFunction(string name, System.Func<double,double> func, bool enableSymbolicationTimeEvaluation = false) { customFuncs[name] = new CustomFunction(name, func, enableSymbolicationTimeEvaluation); }
public void AddCustomFunction(string name, int paramCount, System.Func<double[],double> func, bool enableSymbolicationTimeEvaluation = false) { if (paramCount>MaxCustomFunctionParamCount) { throw new ESTooManyParametersException("Custom functions can have no more than " + MaxCustomFunctionParamCount + " parameters"); } customFuncs[name] = new CustomFunction(name, paramCount, func, enableSymbolicationTimeEvaluation); }