AngouriMath
Integrate
Method with 2 overloads
Integrate(System.String,AngouriMath.Entity.Variable,AngouriMath.Entity,AngouriMath.Entity)
Summary
Integrates definitely the given expression over the `x` variable, if can.
May return an unresolved Integralf node.
Parameter "str"
The expression to be parsed and integrated
Parameter "x"
Over which variable to integrateParameter "from"
The lower bound for integratingParameter "to"
The upper bound for integratingReturns
An integrated expression. It might remain the same or be transformed into nodes with no integrals.
Example
The bounds are substituted into the antiderivative and the difference is left
standing, so the number wanted usually takes one more step:
Console.WriteLine("sin(x)".Integrate("x", 0, "pi")); Console.WriteLine("sin(x)".Integrate("x", 0, "pi").Simplify());
Prints
-cos(pi) - -cos(0) 2Integrate(System.String,AngouriMath.Entity.Variable)
Summary
Integrates indefinitely the given expression over the `x` variable, if can.
May return an unresolved Integralf node.
Parameter "str"
The expression to be parsed and integrated
Parameter "x"
Over which variable to integrateReturns
An integrated expression. It might remain the same or be transformed into nodes with no integrals.
Example
The constant of integration is carried as the variableC ; an integral with no
antiderivative written in the library's functions comes back as the node itself,
which is how this says it could not settle the question:
Console.WriteLine("1 / x".Integrate("x")); Console.WriteLine("e ^ (x ^ 2)".Integrate("x")); Console.WriteLine("x ^ x".Integrate("x"));
Prints
ln(x) + C sqrt(pi) / 2 * erfi(x) + C integral(x ^ x, x)
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4405 pages online