AngouriMath
Limit
Method with 2 overloads
Limit(System.String,AngouriMath.Entity.Variable,AngouriMath.Entity,AngouriMath.Core.ApproachFrom)
Summary
Finds the limit of the given expression over the given variable
Parameter "str"
The expression to be parsed and whose limit to be computed
Parameter "x"
The variable to be approaching
Parameter "destination"
A value where the variable approaches. It might be a symbolic
expression, a finite number, or an infinite number, for example,
"sqrt(x2 + x) / (3x + 3)".Limit("x", "+oo", ApproachFrom.BothSides)
Parameter "side"
From where to approach it: from the left, from the right,
or BothSides, implying that if limits from either are not
equal, there is no limit
Returns
Example
The two one-sided limits of1 / x at zero differ, so the two-sided one does
not exist, and NaN is the claim that it does not exist rather than that it was not
computed:
Console.WriteLine("1 / x".Limit("x", 0, ApproachFrom.Left)); Console.WriteLine("1 / x".Limit("x", 0, ApproachFrom.Right)); Console.WriteLine("1 / x".Limit("x", 0, ApproachFrom.BothSides));
Prints
-oo +oo NaNLimit(System.String,AngouriMath.Entity.Variable,AngouriMath.Entity)
Summary
Finds the limit of the given expression over the given variable
Parameter "str"
The expression to be parsed and whose limit to be foundParameter "x"
The variable to be approaching
Parameter "destination"
A value where the variable approaches. It might be a symbolic
expression, a finite number, or an infinite number, for example,
"sqrt(x2 + x) / (3x + 3)".Limit("x", "+oo")
Returns
Example
The destination may be infinite, which is how the two classical limits below are
asked for:
Console.WriteLine("sin(x) / x".Limit("x", 0)); Console.WriteLine("(1 + 1/x) ^ x".Limit("x", "+oo"));
Prints
1 e
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 4378 pages online