(I think by hand we can try to do some tricks using trigonometric identities, etc to make a simpler form, how about by computer / by Julia? Can we perform the algebraic substitution to make a simpler form to solve limits problem? Like performing Gaussian elimination step by step with Julia )
f(x) = (1 - cos(x))/x^2
xs = [ (1/10)^i for i in 1:10 ];
ys = map(f, xs);
[xs ys]
I don’t really know which one to use (the code) to gain better understanding in limits concept, or is there a new package or method to calculate limit? not only to infinity, limit to 0 or to certain real numbers.
The book said Calculus is the Study of Limits. Haha.
I would say that computers are not the right tool to enhance the understanding of the concept of limits. One reason for this is that there is no general way of “calculating” limits. Furthermore, the space of Floats is not a complete metric space.
What I mean by this is that there will always be an example where the plotting approach fails because of the finiteness of floating point numbers. (Plotting always depicts the function on a finite set of points)
If we look at your first example, the plot would suggest that the limit is 1. But are we sure? Luckily in this example it is quite easy to prove (L'HĂ´pital's rule - Wikipedia).
Hopefully, I understood your question correctly and manged to convey the message that plotting to get insights is helpul, but to be sure that a limit is correct a formal proof is needed.
Yes I believe that we as human, if we manage to enhance and maximize our brain capacity and potential can still beat current computers to enhance the science not only in limit and calculus field.
Computers and Julia(for example) as programming language are only helping tools to calculate fast, plotting, modelling, designing. But the one create, code Julia are still human till now.
Can AI really be smarter than human? Well, if AI can finish all problems in Calculus book with the steps by steps (proofing, plotting, etc) and finishing time within 10 seconds, then there might be different scenario for human.
I plot it, is it an aysmptote like tan function? What is the different between infinity limit and does not exist? People who is not experienced in rigorous Math will think they are the same.
Often wikipedia is not a particularly good reference for math, but to get an idea it might be helpful:
Basically, in order for a limit to exist, comming from the left and from the right has to yield the same result.
A limit does not need to exist, e.g., \lim_{x\rightarrow 0} \sin(\frac{1}{x}). Around 0 it oscillates so fast that you can’t tell whether it should be 1 or -1. If a limit exists and happen to be \infty it still exists.
This is more an issue with the default setting of SymPy (right limits) being different from the expectation from a calculus classroom. You can pass dir="+-" to see what SymPy returns for a two-sided limit.