Results 1 to 2 of 2

Math Help - question about a limit. MATLAB

  1. #1
    Newbie
    Joined
    Feb 2010
    Posts
    1

    question about a limit. MATLAB

    Okay so I have the identity for e

    e = limit (Rn) as n --> infinity

    Rn = (1+1/n)^n


    I need to make a Log-Log plot of e - Rn for n = 5,15...500.

    So far this is my code;

    n = [5:10:500] ;
    R = (1 +1./n).^n;
    L = limit(R,n,inf);
    P = loglog(e-R);


    The message I get is this;

    Undefined function or method 'limit' for input arguments of type 'double'.

    Error in ==> Project1 at 153
    k = limit(r,n,Inf)
    Last edited by EastTexasJB; February 11th 2010 at 09:59 AM. Reason: wrong equation
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by EastTexasJB View Post
    Okay so I have the identity for e

    e = limit (Rn) as n --> infinity

    Rn = (1+1/n)^n


    I need to make a Log-Log plot of e - Rn for n = 5,15...500.

    So far this is my code;

    n = [5:10:500] ;
    R = (1 +1./n).^n;
    L = limit(R,n,inf);
    P = loglog(e-R);


    The message I get is this;

    Undefined function or method 'limit' for input arguments of type 'double'.

    Error in ==> Project1 at 153
    k = limit(r,n,Inf)
    Code:
    n = [5:10:500] ;
    R = (1 +1./n).^n;
    
    loglog(n,e-R);
    CB
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. please help me with this MATLAB Question
    Posted in the Math Software Forum
    Replies: 0
    Last Post: April 16th 2010, 01:51 AM
  2. Need help with MATLAB question
    Posted in the Math Software Forum
    Replies: 1
    Last Post: February 4th 2010, 04:20 AM
  3. matlab question.need help :(
    Posted in the Math Software Forum
    Replies: 0
    Last Post: October 7th 2009, 07:58 AM
  4. Matlab Question Help
    Posted in the Math Software Forum
    Replies: 6
    Last Post: September 20th 2009, 10:57 PM
  5. Hello - Matlab question
    Posted in the Math Software Forum
    Replies: 1
    Last Post: May 3rd 2009, 11:59 PM

Search Tags


/mathhelpforum @mathhelpforum