| Symbolic Math Toolbox | Search  Help Desk | |
| limit | Examples | See Also |
Limit of a symbolic expression.
limit(F,x,a)
limit(F,a) limit(F) limit(F,x,a,'right') limit(F,x,a,'left')
limit(F,x,a) takes the limit of the symbolic expression F as x -> a.
limit(F,a) uses findsym(F) as the independent variable.
limit(F) uses a = 0 as the limit point.
limit(F,x,a,'right') or limit(F,x,a,'left') specify the direction of a one-sided limit.
Assume
syms x a t h;
Then
limit(sin(x)/x)=>1limit(1/x,x,0,'right') => inf limit(1/x,x,0,'left') => -inf limit((sin(x+h)-sin(x))/h,h,0) => cos(x) v = [(1 + a/x)^x, exp(-x)]; limit(v,x,inf,'left') => [exp(a), 0]
pretty, ccode, fortran