Processing math: 100%
Ask Your Question
0

Unexpected result in calculating limits

asked 5 years ago

gg gravatar image

Limit of sqrt(x-3) when x approaches 3 doesn't exist but the sage returns 0. Why is that?

sage: 
sage: limit(sqrt(x-3), x=3)
0
sage:
Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 5 years ago

Sébastien gravatar image

Maybe because the square root function is defined for negative numbers and the square root of small negative numbers converges to zero as well (on the Complex plane):

sage: sqrt(-.00000001)
0.000100000000000000*I
Preview: (hide)
link

Comments

is there any way to alter this behavior?

gg gravatar imagegg ( 5 years ago )

I don't know. Sympy behaves the same:

sage: from sympy import limit, sqrt
sage: from sympy.abc import x
sage: limit(sqrt(x-3), x, 3)
0
sage: limit(sqrt(x-3), x, 3, dir="+")
0
sage: limit(sqrt(x-3), x, 3, dir="-")
0
Sébastien gravatar imageSébastien ( 5 years ago )

BTW, I don't quite understand the term "complex plane" and how the square root converges to 0. Where I can read more about it?

gg gravatar imagegg ( 5 years ago )
1

You may learn about the complex plane here https://en.wikipedia.org/wiki/Complex... and there is a section on the square root of negative number in the wikipedia page of the square root: https://en.wikipedia.org/wiki/Square_...

Sébastien gravatar imageSébastien ( 5 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 5 years ago

Seen: 299 times

Last updated: Apr 15 '20