1. ## 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.

2. 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?

3. 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..

4. 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!

5. Originally Posted by esash
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

6. Originally Posted by HallsofIvy
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..