Page 1 sur 1

Question about a limit

Publié : sam. juin 13, 2026 4:31 am
par GermanXG
The entry:

Code : Tout sélectionner

limit((x**2-1)/(1+surd(x,3)),x,-1)
returns the limit 0. And the message about that "surd" was temporarily changed to a fractional exponent. But the entry:

Code : Tout sélectionner

subs(simplify((x**2-1)/(1+surd(x,3))),x=-1)
returns -6 and the same message about "surd". Am I doing something wrong with the limit command?

Re: Question about a limit

Publié : sam. juin 13, 2026 2:11 pm
par parisse
The warning is the same but it is not sent by the same command: it's by limit in the 1st case and by simplify in the second case. Both will replace surd by x^(1/3) in intermediate computations.
simplify will replace your expression temporarily by (x**2-1)/(1+x^(1/3)), then simplify then replace back x^(1/3) by surd. Then evaluating at x=-1 will return -6.
limit will replace surd by x^(1/3), then since (-1)^(1/3) is a complex != -1 the limit at x=-1 is evaled to be 0.