Mathematica Plotting Summation Convergence in Mathematica

AI Thread Summary
The discussion revolves around a user seeking assistance with plotting a summation in Mathematica and fitting a polynomial function to the results. Initially, the user attempted to plot discrete values of the summation but faced challenges due to the nature of the variable. They considered using ListPlot for visualization. However, the user later reported resolving the issue independently and shared their updated notebook for review. Another participant noted the effectiveness of their method, highlighting the use of a mapping function to handle high powers of x and suggesting improvements by turning off unnecessary error messages. The conversation emphasizes the importance of proper plotting techniques and polynomial fitting in Mathematica for analyzing convergence in summations.
natski
Messages
262
Reaction score
2
Hi everyone,

I have an expression for a summation and want to find out where it converges precisely. I decided to work out the sum for i=10,100,1000 etc. I logged the results, then took the recriprocal and then plotted it as the x-axis in Excel with the y-axis as my result. (So that the y intercept gives the convergence value).

So now I want to repeat this in Mathematica. I tried plotting my summation for different values of i, but it just didn't like that one bit because i is discrete and not continuous. So firstly, how do I do this? I'm thinking ListPlot?

Secondly, I need to be able to fit a polynomial function to the result, which I also have no idea how to do. I have attached the notebook.

I really appreciate any help,
Thanks,
Natski
 

Attachments

Physics news on Phys.org
I tried to delete that last post but I couldn't. Anyway, I think I solved it the problem, a lot easier than I thought. I have attached the file again incase anyone wants to point out if my method is flawed.
 

Attachments

You wanted something like this?

Edit: Oh I see you solved it yourself. Notice, in my method I turned of the superfulous error. Your table of pairs works just like my Thread, notice I use a map function to get high powers of x.
 

Attachments

Back
Top