## AngouriMath

## Navigation

## Limits

Another topic of basic calculus are limits, both one- and two-sided.

## Two-sided limits

The first method to find limits is method

```
Entity expr = "(a x3 + b x2 + c) / (h x3 - b x - 1)";
Console.WriteLine(expr.Limit("x", "+oo"));
```

Output:
`a / h`

That is, as the first argument a variable should be passed, and its destination - as the second argument.Symbols

Not only it works with rational functions, here are a few examples of more advanced cases. Example:

```
// First remarkable
Entity expr = "sin(a x) / x";
Console.WriteLine(expr.Limit("x", "0"));
```

// First remarkable
Entity expr2 = "sin(a x) / tan(b x)";
Console.WriteLine(expr2.Limit("x", "0"));

// Second remarkable
Entity expr3 = "(1 + a / x)^(d x)";
Console.WriteLine(expr3.Limit("x", "+oo"));

// l'Hopital's rule
Entity expr4 = "(tan(t) - sin(t)) / t3";
Console.WriteLine(expr4.Limit("t", "0"));

Output:
```
a
a / b
e ^ (a * d)
1/2
```

If a limit cannot be found, a note of

```
Entity expr = "(sin(t) - tan(t)) / t";
Console.WriteLine(expr.Limit("t", "+oo"));
```

Output:
`limit((sin(t) - tan(t)) / t, t, +oo)`

Extension:

## One-sided limits

The method is

```
Entity expr = "(a x2 + b) / (c x2 + d)";
Console.WriteLine(expr.Limit("x", "3", AngouriMath.Core.ApproachFrom.Left));
```

Output:
`(a * 9 + b) / (c * 9 + d)`

Another example:

```
Entity expr = "(a x2 + b) / (c x2 + d)";
Console.WriteLine(expr.Limit("x", "0", AngouriMath.Core.ApproachFrom.Left));
```

Output:
`b / d`

Extension:

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

2019-2021 Angouri · Project's repo · Site's repo · Octicons