limit - Limit of symbolic expression

Syntax

limit(F,x,a)
limit(F,a)
limit(F)
limit(F,x,a,'right')
limit(F,x,a,'left')

limit(F,x,a)

Description

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.

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

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS