Previous Up Next

13.1.1  Univariate function limits

The limit command computes limits, both at numbers and infinities, and in the real case it can compute one-sided limits.

Examples

To find limx→ 01/x, input:

limit(1/x,x,0,-1)

or:

limit(1/x,x=0,-1)
     
−∞           

To find limx→ 0+1/x, input:

limit(1/x,x,0,1)

or:

limit(1/x,x=0,1)
     
+∞           

To find limx→ 01/x, input:

limit(1/x,x,0,0)

or:

limit(1/x,x,0)

or:

limit(1/x,x=0)
     
          

Note that ∞ or infinity without an explicit + or - represents unsigned infinity.

Find, for n>2, the limit of ntan(x)−tan(nx)/sin(nx)−nsin(x) as x approaches 0.

limit((n*tan(x)-tan(n*x))/(sin(n*x)-n*sin(x)),x=0)
     
2           

Note that Xcas does not complain about a possibility of n being equal to 1.

Find the limit of √x+√x+√x−√x as x approaches +∞.

limit(sqrt(x+sqrt(x+sqrt(x)))-sqrt(x),x=+infinity)
     
1
2
          

Find the limit of √1+x+x2/2ex/2/(1−cos(x))sin(x) as x approaches 0.

limit((sqrt(1+x+x^2/2)-exp(x/2))/((1-cos(x))*sin(x)),x,0)
     
1
6
          

Previous Up Next