limit
Limit of a symbolic expression_r
Syntax
limit(F,x,a)
limit(F,a)
limit(F)
limit(F,x,a,'right')
limit(F,x,a,'left')
Description
limit(F,x,a) takes the limit of the symbolic expression_r 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.
Examples
Assume
syms x a t h;
Then
limit(sin(x)/x) => 1
limit(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]
See Also
pretty, ccode, fortran