## Limit Command

This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact us.

**Go to the version which can be edited by users.**##### Limit

This article is about GeoGebra command.

##### Command Categories (All commands)

- Algebra Commands
- Chart Commands
- Conic Commands
- Discrete Math Commands
- Function Commands
- Geometry Commands
- GeoGebra Commands
- List Commands
- Logical Commands
- Optimization Commands
- Probability Commands
- Scripting Commands
- Spreadsheet Commands
- Statistics Commands
- Financial Commands
- Text Commands
- Transformation Commands
- Vector and Matrix Commands
- CAS Specific Commands

- Limit[ <Function>, <Value> ]
- Computes the limit of the function for the given value of the main function variable.
**Example:**`Limit[(x^2 + x) / x^2, +∞]`

yields*1*.

**Note:**Not all limits can be calculated by GeoGebra, so

*undefined*will be returned in those cases (as well as when the correct result is undefined).

## CAS Syntax

- Limit[ <Expression>, <Value> ]
- Computes the limit of the expression for the given value of the main function variable.
**Example:**`Limit[a sin(x) / x, 0]`

yields*a*.

- Limit[ <Expression>, <Variable>, <Value> ]
- Computes the limit of the expression for the given value of the given function variable.
**Example:**`Limit[a sin(v) / v, v, 0]`

yields*a*.

**Note:**

- Not all limits can be calculated by GeoGebra, so
*?*will be returned in those cases (as well as when the correct result is undefined). - If you want the limit of a piecewise-defined function you need to use LimitAbove or LimitBelow, for example
`LimitAbove[If[x>1, x^2, -2x], 1]`

- See also Asymptote Command, LimitAbove Command and LimitBelow Command.