Skip to content

Integration

WhiteBlackGoose edited this page Feb 15, 2023 · 1 revision

Analytical integration is available in AngouriMath.

Integration

Similarly to differentation, here you call method Integrate:

Entity expr = "a x2 + b x";
Console.WriteLine(expr.Integrate("x"));

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.Integralf inside an expression:

Entity expr = "integral(x2 + sin(x), x)";
Console.WriteLine(expr.Simplify());

Output:

x ^ 3 / 3 - cos(x)

Extension: string.Integrate(Variable).

As for now, 17.03.2021, AM does not support advanced algorithms of integration. Make sure to stay on the most recent version to track updates.

Clone this wiki locally