This script determines the convergence or divergence of infinite series, calculates a sum, provides a partial sum plot, and calculates radius and interval of convergence of power series. The tests included are: Divergence Test (nth term test), Integral Test (MaclaurinCauchy test), Comparison Test, Limit Comparison Test, Ratio Test (d'Alembert ratio test), Root Test (Cauchy root test), Alternating Series Test (Leibniz test), Absolute Convergence Test, p  Series Test, Geometric Series Test, Raabe's Test, and Power Series Test. The Power Series Test uses the ratio test, the root test, and the CauchyHadamard theorem to calculate the radius and interval of convergence. This script may help the Calculus (II or III) student with the Infinite Series chapter, and it may also help the Differential Equations student with Series Solutions.
David Cazenave (2020). Convergence Calculator for Infinite Series & Power Series (https://www.mathworks.com/matlabcentral/fileexchange/72141convergencecalculatorforinfiniteseriespowerseries), MATLAB Central File Exchange. Retrieved .
1.5.4  Strengthened filters in the Absolute Convergence Test with the Integral Test, and the Alternating Series Test. Changed some display statements in the Limit Comparison Tests. 

1.5.3  Fixed bug in the Absolute Convergence Test with the Integral Test. Fixed bug in the Integral Test. Reorganized display statement blocks in the 4 comparison tests. 

1.5.2  Strengthened a filter in the Absolute Convergence Test with the Integral Test. Clarified a display statement block in the 4 comparison tests. 

1.5.1  Expanded logarithmic capability of both Integral Tests, both Comparison Tests, and both Limit Comparison Tests. Expanded capability of the pSeries Test and the Geometric Series Test. Improved robustness of the Power Series Test. 

1.5.0  Improved trigonometric capability of the Absolute Convergence Test with the Integral Test, and the Alternating Series Test. Adjusted Limit Comparison Test plot marker color. Fixed bug in Divergence Test, and fixed bug in Alternating Series Test. 

1.4.9  Added comments to both Integral Tests, and added display


1.4.8  Improved robustness of Raabe's Test and added comments to the Integral Tests. 

1.4.7  Expanded trigonometric capability of the Absolute Convergence Test with the Integral Test and the Absolute Convergence Test with the Comparison Test. 

1.4.6  Corrected error in Alternating Series Test and Raabe's Test. 

1.4.5  Fixed bug in Raabe's Test. 

1.4.4  Improved robustness of, and added a comment to Raabe's Test. 

1.4.3  Fixed bug in the Absolute Convergence Test with the Integral Test, and fixed bug in the Power Series Test. 

1.4.2  Corrected a variable name and deleted a comment. 

1.4.1  Improved robustness of the Power Series Test. 

1.4.0  Improved robustness of Raabe's Test. 

1.3.9  Nested 6 if statements and deleted extraneous code in the Power Series Test. 

1.3.8  Improved robustness of Raabe's Test, added some display statements to the Integral Test description, and switched display statements between the Comparison Test and the Absolute Convergence Test with the Comparison Test. 

1.3.7  Improved robustness of the Absolute Convergence Test with the Integral Test and updated Required MathWorks Products. 

1.3.6  Improved robustness of Raabe's Test and added some display statements to the Comparison Test and the Absolute Convergence Test with the Integral Test descriptions. 

1.3.5  Improved robustness of the Integral Test, Comparison Test, Limit Comparison Test, Ratio Test, Root Test, Absolute Convergence Tests, p  Series Test, and Raabe's Test. 

1.3.4  Changed Summary. 

1.3.3  Updated screenshot, added to Overview description, and modified comments description. 

1.3.2  Changed the Overview and added a couple of display statements. 

1.3.1  Changed when series_expr_integral is displayed in


1.3.0  Added some display statements to the Absolute Convergence Test with the Comparison Test description, the Absolute Convergence Test with the Limit Comparison Test description, and the Power Series Test description. 

1.2.9  Corrected punctuation in a couple of display statements. 

1.2.8  Improved robustness, deleted and added some code, and added some comments. 

1.2.7  Improved robustness and added some display statements. 

1.2.6  Fixed bug with the Power Series Test. 

1.2.5  Improved robustness of the Power Series Test. 

1.2.4  Added some comments and to Power Series Test description. 

1.2.3  Expanded capability and improved robustness of the Power Series Test, also updated the Integral Test, Ratio Test, Root Test, Alternating Series Test, Absolute Convergence Test with the Integral Test, Raabe's Test, and some descriptions. 

1.2.2  Deleted some extraneous code. 

1.2.1  Fixed bug with the Power Series Test. 

1.2.0  Increased capability of the Power Series Test. 

1.1.9  Clarified some display statements and corrected bug with the Power Series Test. 

1.1.8  Improved robustness of the Power Series Test. 

1.1.7  Improved robustness and speed. 

1.1.6  Fixed bug with the Power Series Test. 

1.1.5  Corrected Power Series Test description. 

1.1.4  Corrected Absolute Convergence Test with the Integral Test description


1.1.3  Corrected error with Absolute Convergence Test sums


1.1.2  Corrected comments description. 

1.1.1  Modified script summary and description. 

1.1.0  Changed an elseif to an else. 

1.0.9  Corrected comments description


1.0.8  Updated MATLAB Release Compatibility. 

1.0.7  Deleted some display statements


1.0.6  Corrected display statement. 

1.0.5  Resubmission. 

1.0.4  Improved robustness. 

1.0.3  Modified screenshot again. 

1.0.2  Modified screenshot. 

1.0.1  Changed title and added screenshot. 
Create scripts with code, output, and formatted text in a single executable document.
Thank you for taking the time to put this together. I am a Calculus 3 student and while this is not always correct, as you, the author clearly states, this has been instrumental is saving me a bunch of time in validating my work. Not all heroes wear capes.
Hello Sia. The Limit Comparison Test requires you to enter the series expression, test # 4, starting k, c or d, and comparison expression. The answer then appears.
For the limit comparison test am I supposed to give the series to be compared with as well? After inputting starting k as 2, I got a detailed explanation of what the limit comparison test is but no answer given. I was also then asked whether this series converges (c) or diverges (d)  I believed that was what your code would answer for me.
If you don't know what my script is for, or you can't figure out how to use it, maybe you should find another mfile.
How do i actually uses this?
I have five star ratings from 2 Mathworks staff members.
MATLAB has a specific way that you have to enter input. It's called syntax. All programming languages have syntax. All mfiles run with the same syntax.
Good idea. but there simply needs to be a tutorial for how to enter things properly. I can't even tell if the calculator works because 90% of the time it has a input error.
could you please give me a tutorial to use the calculator?
Hello Mohamad and thank you for your interest in my script! For an example, click on the screenshot to the left of the file title above.
can i get example to input a question ?