AngouriMath
Integration
Analytical integration is available in AngouriMath.
Integration
Similarly to differentation, here you call methodEntity expr = "a x2 + b x";
Console.WriteLine(expr.Integrate("x"));
Output:
a * x ^ 3 / 3 + b * x ^ 2 / 2 + C
An antiderivative is only defined up to a constant, and Entity expr = "a x2 + b x";
Console.WriteLine(expr.Integrate("x").Substitute("C", 0).InnerSimplified);
Output:
a * x ^ 3 / 3 + b * x ^ 2 / 2
If no integral can be found, it will return a node of integral. Example:
Entity expr = "{ x, a }";
Console.WriteLine(expr.Integrate("x"));
Output:
integral({ x, a }, x)
Same way as with derivative, you can use node Entity expr = "integral(x2 + sin(x), x)";
Console.WriteLine(expr.Simplify());
Output:
C - cos(x) + x ^ 3 / 3
Extension: Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1953 pages online