示例#1
0
 public Symbol(CustomFunction func)
 {
     type = SymbolType.FuncCustom;
     customFunc = func;
 }
示例#2
0
 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);
 }
示例#5
0
 public Symbol(CustomFunction func)
 {
     type       = SymbolType.FuncCustom;
     customFunc = func;
 }