public BasisFunction(string var, double[] val, bool isOperator, NonlinOp op = NonlinOp.None) { this.Var = var; this.Val = val; this.IsOperator = isOperator; this.Operator = op; }
public static string ToString(NonlinOp op, string val) => op != NonlinOp.None ? op.ToString() + "(" + val + ")" : val;