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