public Differentiation(Expression expr, string var = "x", IDifferentiationScope functions = null)
     : this(var, functions)
 {
     this.result = Differentiate(expr);
 }
Esempio n. 2
0
        public static Expression Differentiate(Expression expr, string var, IVariableScope variables, IFunctionScope functions, IDifferentiationScope derivatives)
        {
            Expression derivative = (new Differentiation(expr, var, derivatives)).Result;

            return(Evaluate(derivative, variables, functions));
        }
 public Differentiation(string var = "x", IDifferentiationScope functions = null)
 {
     this.var = var;
     this.functions = functions;
 }
Esempio n. 4
0
 public Expression Differentiate(string var, IVariableScope variables, IFunctionScope functions, IDifferentiationScope derivatives)
 {
     return(Differentiate(this, var, variables, functions, derivatives));
 }
 public Expression Differentiate(string var, IVariableScope variables, IFunctionScope functions, IDifferentiationScope derivatives)
 {
     return Differentiate(this, var, variables, functions, derivatives);
 }
        public static Expression Differentiate(Expression expr, string var, IVariableScope variables, IFunctionScope functions, IDifferentiationScope derivatives)
        {
            Expression derivative = (new Differentiation(expr, var, derivatives)).Result;

            return Evaluate(derivative, variables, functions);
        }
Esempio n. 7
0
 public Differentiation(Expression expr, string var = "x", IDifferentiationScope functions = null) : this(var, functions)
 {
     this.result = Differentiate(expr);
 }
Esempio n. 8
0
 public Differentiation(string var = "x", IDifferentiationScope functions = null)
 {
     this.var       = var;
     this.functions = functions;
 }