Results 1 to 6 of 6

Math Help - Code limits

  1. #1
    Newbie
    Joined
    Aug 2009
    Posts
    5

    Question Code limits

    Hello everyone.. I'm a new user of maths forum.. I'm stuck in my project without knowing how to code expressions using limits.. Like differentiation and integration have numerical methods of analysis.. Or any other way by which I can code limits in python would be a good suggestion.. I don't require the code hopefully but an algorithm as to how to proceed further would surely help.. Please help.. Thank you in advance.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Member eXist's Avatar
    Joined
    Aug 2009
    Posts
    157
    So are you asking something like this:

    Someone gives you an function.
    They also give you a limit to calculate on that function.
    Do you want your program to be able to calculate that limit?
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Aug 2009
    Posts
    5
    Well, yes. I get a function, say f(x). I've to code to find out the values of lim as n-> infinity (f(x)).. I don't know how to code this.. Please help..
    Follow Math Help Forum on Facebook and Google+

  4. #4
    MHF Contributor

    Joined
    Apr 2005
    Posts
    16,444
    Thanks
    1863
    That depends strongly on what languge you are using and I am not familiar with python! The obvious way to find " \lim_{x\to a} f(x)" , in any language, is to calculate f(x) for some value of x close to a. Of course, it is impossible to find the exact limit with a numerical calculation. That's why "limits" are not part of arithmetic!
    Follow Math Help Forum on Facebook and Google+

  5. #5
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by esash View Post
    Hello everyone.. I'm a new user of maths forum.. I'm stuck in my project without knowing how to code expressions using limits.. Like differentiation and integration have numerical methods of analysis.. Or any other way by which I can code limits in python would be a good suggestion.. I don't require the code hopefully but an algorithm as to how to proceed further would surely help.. Please help.. Thank you in advance.
    Lets try to get this straight: You have to write a function which given a function \text{ff} (of a single real variable; just for arguments sake) and a value x_0 will return (a numerical approximation to)the limit as x \to x_0 of \text{ff}(x) ?

    Alternative interpretations include x being restricted to the integers, so we are now looking for the limit of a sequence.

    CB
    Follow Math Help Forum on Facebook and Google+

  6. #6
    Newbie
    Joined
    Aug 2009
    Posts
    5
    Quote Originally Posted by HallsofIvy View Post
    That depends strongly on what languge you are using and I am not familiar with python! The obvious way to find " \lim_{x\to a} f(x)" , in any language, is to calculate f(x) for some value of x close to a. Of course, it is impossible to find the exact limit with a numerical calculation. That's why "limits" are not part of arithmetic!
    Thanks for that.. I guess this is possible.. I mean calculating the value of the function f(x) for some value of x close to a.. Thanks for the suggestion.. I'll surely implement it..
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. R-code help!
    Posted in the Math Software Forum
    Replies: 0
    Last Post: November 11th 2011, 10:01 AM
  2. Code
    Posted in the Algebra Forum
    Replies: 1
    Last Post: October 9th 2011, 02:08 AM
  3. Code.
    Posted in the Discrete Math Forum
    Replies: 3
    Last Post: March 19th 2011, 10:51 AM
  4. Need help with R code
    Posted in the Math Software Forum
    Replies: 2
    Last Post: September 9th 2009, 03:10 PM
  5. C++ code?
    Posted in the Math Software Forum
    Replies: 7
    Last Post: August 19th 2008, 03:05 PM

Search Tags


/mathhelpforum @mathhelpforum