Skip to content

kasancode/MathTools.Algebra

Repository files navigation

MathTools.Algebra

.NET NuGet

Documents

Example

var formula = Formula.Parse("x^4*exp(x)");
var value = formula.Eval(new { x = 0.2 });

var derivative = formula.Derive("x").Simplify();
var text = derivative.ToString(); // 4*x^3*Exp(x)+x^4*Exp(x)
var derivedValue = derivative.Eval(new { x = 0.2 });
var formula = Formula.Pow("x", 4) * Formula.Exp("x");
var value = formula.Eval(new { x = 0.2 });

var derivative = formula.Derive("x").Simplify();
var text = derivative.ToString(); // 4*x^3*Exp(x)+x^4*Exp(x)
var derivedValue = derivative.Eval(new { x = 0.2 });
var x = new Variable("x");
var formula = Formula.Pow(x, 4) * Formula.Exp(x);
var value = formula.Eval(new { x = 0.2 });

var derivative = formula.Derive("x").Simplify();
var text = derivative.ToString(); // 4*x^3*Exp(x)+x^4*Exp(x)
var derivedValue = derivative.Eval(new { x = 0.2 });

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages