Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question
0

The method lim() does not return a simple integer

asked 1 year ago

PatB gravatar image

updated 1 year ago

Hi,

I have two cases where I would expect the answer to be a simple integer when I take the limit using lim(..)

lim(i/(i+1),i=infinity)

This answer should be 1. Instead I get: 1/2*I + 1/2

lim(1/((2i+3)(2*i+2)),i=+oo)

Similarly, the answer should be 0

Instead I get this form:

-5/52*I + 1/52

Question: Am I using the right method, od do I need to add more constraints ?

thanks Pat

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 1 year ago

updated 1 year ago

i is predefined in Sage to be the square root of 1, so it doesn't really make sense to take a limit as it varies. If you instead do either

lim(x/(x+1),x=infinity)

or

var('i')  # make "i" a variable
lim(i/(i+1),i=infinity)

then you'll get the answer you expect.

Preview: (hide)
link

Comments

Thanks very much John - good catch!

PatB gravatar imagePatB ( 1 year 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: 1 year ago

Seen: 135 times

Last updated: Nov 30 '23