Post Reply 
CAS bug: limit of (1+1/n)^n
04-15-2014, 03:50 AM
Post: #1
CAS bug: limit of (1+1/n)^n
If I ask for the limit as n->∞ of (1+1/n)^n in CAS (set to exact), I get the answer of 1.

If I do the same on my 50g I get the correct answer of e.

(I hope this post keeps me from getting purged again!)
Find all posts by this user
Quote this message in a reply
04-15-2014, 05:49 AM (This post was last modified: 04-15-2014 05:51 AM by Angus.)
Post: #2
RE: CAS bug: limit of (1+1/n)^n
I've just checked it: gives e to me on the prime. I entered the expression using the limes template. Just in case that could be of importance.
I have no idea nor explanation what could be the reason you get '1' (variable n defined, maybe? Could that do harm in any way?), but some wiser guys might find the error.
Find all posts by this user
Quote this message in a reply
04-15-2014, 08:32 AM
Post: #3
RE: CAS bug: limit of (1+1/n)^n
(04-15-2014 03:50 AM)Steve Keeley Wrote:  If I ask for the limit as n->∞ of (1+1/n)^n in CAS (set to exact), I get the answer of 1.
If I do the same on my 50g I get the correct answer of e.

limit((1+1/n)^n,n,∞) returns e.
limit((1+1/n)^N,n,∞) returns 1.
Perhaps you accidentally typed "N" instead of "n"?

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
04-15-2014, 08:41 AM
Post: #4
RE: CAS bug: limit of (1+1/n)^n
Thanks! I also used the limit template. But after you wrote that it worked for you I tried again and found what I did wrong. I entered:

lim (1+1/n)^n

rather than:

lim ((1+1/n)^n)

The second one gave the right answer.

I didn't have this problem on the 50g since I was in RPN mode. I entered:

2: '(1+1/n)^n'
1: 'n=+∞'

then hit the "limit" softkey.
Find all posts by this user
Quote this message in a reply
04-15-2014, 08:47 AM
Post: #5
RE: CAS bug: limit of (1+1/n)^n
At least on the Prime simulator it gives "e" as an answer as well.

Jose Mesquita
RadioMuseum.org member

Find all posts by this user
Quote this message in a reply
04-15-2014, 08:34 PM
Post: #6
RE: CAS bug: limit of (1+1/n)^n
(04-15-2014 08:41 AM)Steve Keeley Wrote:  Thanks! I also used the limit template. But after you wrote that it worked for you I tried again and found what I did wrong. I entered:

lim (1+1/n)^n

rather than:

lim ((1+1/n)^n)

The second one gave the right answer.

I didn't have this problem on the 50g since I was in RPN mode. I entered:

2: '(1+1/n)^n'
1: 'n=+∞'

then hit the "limit" softkey.
Well, I don't see the value of adding one more level of parentheses. To me this is clearly a bug.
Find all posts by this user
Quote this message in a reply
04-15-2014, 08:41 PM
Post: #7
RE: CAS bug: limit of (1+1/n)^n
The extra parentheses are needed to prevent ambiguity between:

\[ \lim_{n\to \infty} (1+1/n)^n = \left( \lim_{n\to \infty} (1+1/n) \right)^n = 1^n = 1 \]

and

\[ \lim_{n\to \infty} (1+1/n)^n = \lim_{n\to \infty} \left( (1+1/n)^n \right) = e \]

Should the limit operator have precedence over exponentiation? or the other way around? To remove any doubt what you intended to compute, use the extra parentheses. (More reason for the devs to get RPN into a better state :-)

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 2 Guest(s)