AI-Enhanced Performance Evaluation of Python, MATLAB, and Scilab for Solving Nonlinear Systems of Equations: A Comparative Study Using the Broyden Method
This research extensively evaluates three leading
mathematical software packages: Python, MATLAB, and Scilab, in the
context of solving nonlinear systems of
equations with five unknown variables. The study’s core objectives include comparing software performance using
standardized benchmarks, employing key performance metrics for quantitative
assessment, and examining the influence of varying hardware specifications on
software efficiency across HP ProBook, HP EliteBook, Dell Inspiron, and Dell
Latitude laptops. Results from this investigation reveal insights into the
capabilities of these software tools in diverse computing environments. On the
HP ProBook, Python consistently outperforms MATLAB in terms of computational
time. Python also exhibits a lower robustness index for problems 3 and 5 but
matches or surpasses MATLAB for problem 1, for some initial guess values. In
contrast, on the HP EliteBook, MATLAB
consistently exhibits shorter computational times than Python across all benchmark problems. However, Python
maintains a lower robustness index
for most problems, except for problem 3, where MATLAB performs better. A
notable challenge is Python’s failure to converge for problem 4 with certain
initial guess values, while MATLAB succeeds in producing results. Analysis on
the Dell Inspiron reveals a split in strengths. Python demonstrates superior
computational efficiency for some problems, while MATLAB excels in handling others. This pattern extends to the
robustness index, with Python showing lower values for some problems, and MATLAB achieving the lowest indices for other problems. In conclusion, this
research offers valuable insights into the comparative performance of Python,
MATLAB, and Scilab in solving nonlinear systems of equations. It underscores
the importance of considering both software and hardware specifications in real-world
applications. The choice between Python and MATLAB can yield distinct
advantages depending on the specific problem and computational environment,
providing guidance for
References
[1]
Azure, I. (2023) An Analysis of Solutions of Nonlinear Equations Using AI Inspired Mathematical Packages. International Journal of Systems Science and Applied Mathematics, 8, 23-30. https://doi.org/10.11648/j.ijssam.20230802.12
[2]
Downey, A.B. (2015) Think Python: How to Think like a Computer Scientist. Green Tea Press, St, Erie. http://greenteapress.com/thinkpython2/html/index.html
[3]
Hahn, B. and Valentine, D.T. (2020) Essential MATLAB for Engineers and Scientists. Academic Press, Cambridge.
[4]
Hanselman, D.C. and Littlefield, B.L. (2018) The Art of MATLAB. Cambridge University Press, Cambridge.
[5]
Mahdy, A.M.S. (2022) A Numerical Method for Solving the Nonlinear Equations of Emden-Fowler Models. Journal of Ocean Engineering and Science. https://doi.org/10.1016/j.joes.2022.04.019
[6]
Nagar, S. (2021) Introduction to Scilab. Notion Press, Chennai.
[7]
Python Software Foundation (2021) Python 3.10.0 Documentation. https://docs.python.org/3/
[8]
Rasheed, M., Shihab, S., Rashid, A., Rashid, T., Hamed, S.H.A. and Aldulaimi, M.A.H. (2021) An Iterative Method to Solve Nonlinear Equation. Journal of Al-Qadisiyah for Computer Science and Mathematics, 13, 87. https://doi.org/10.29304/jqcm.2021.13.1.753
[9]
Isaac, A., Stephen, T.B. and Seidu, B. (2021) A Comparison of Newly Developed Broyden-Like Methods for Solving System of Nonlinear Equations. International Journal of Systems Science and Applied Mathematics, 6, 77-94. https://doi.org/10.11648/j.ijssam.20210603.11
[10]
Rasheed, M., Rashid, A., Rashid, T., Hamed, S.H.A. and Al-Farttoosi, O.A.A. (2021) Application of Numerical Analysis for Solving Nonlinear Equation. Journal of Al-Qadisiyah for Computer Science and Mathematics, 13, 70. https://doi.org/10.29304/jqcm.2021.13.1.752
[11]
Biswa, N.D. (2012) Lecture Notes on Numerical Solution of Root-Finding Problems MATH 435.
[12]
Martınez, J.M. (2000) Practical Quasi-Newton Methods for Solving Nonlinear Systems. Journal of Computational and Applied Mathematics, 124, 97-121. https://doi.org/10.1016/S0377-0427(00)00434-9
[13]
Mikac, M., Logožar, R. and Horvatić, M. (2022) Performance Comparison of Open Source and Commercial Computing Tools in Educational and Other Use—Scilab vs. MATLAB. Tehnički Glasnik, 16, 509-518. https://doi.org/10.31803/tg-20220528171032
[14]
Biegler, L.T. (2010) Nonlinear Programming: Concepts, Algorithms, and Applications to Chemical Processes. Society for Industrial and Applied Mathematics, Philadelphia. https://doi.org/10.1137/1.9780898719383
[15]
Kelley, C.T. (1995) Iterative Methods for Linear and Nonlinear Equations. Society for Industrial and Applied Mathematics, Philadelphia. https://doi.org/10.1137/1.9781611970944
[16]
Srivastava, R.B. and Srivastava, S. (2011) Comparison of Numerical Rate of Convergence of Bisection, Newton-Raphson’s and Secant Methods. Journal of Chemical, Biological and Physical Sciences (JCBPS), 2, 472.
[17]
Xu, X.-B. (2022) An Algorithm on the Numerical Continuation of Asymmetric and Symmetric Periodic Orbits Based on the Broyden Method and Its Application. Chinese Astronomy and Astrophysics, 63, 401-421.
[18]
Tolner, F., Barta, B. and Eigner, G. (2022) Comparison of Newton’s and Broyden’s Method as Nonlinear Solver in the Implementation of MFV-Robustified Linear Regression. 2022 IEEE International Conference on Systems, Man, and Cybernetics (SMC), Prague, 9-12 October 2022, 1518-1523. https://doi.org/10.1109/SMC53654.2022.9945222
[19]
Ebelechukwu, O.C., Johnson, B.O., Michael, A.I. and Fidelis, A.T. (2018) Comparison of Some Iterative Methods of Solving Nonlinear Equations. International Journal of Theoretical and Applied Mathematics, 4, 22-28. https://doi.org/10.11648/j.ijtam.20180402.11
[20]
Ahmad, A.G. (2015) Comparative Study of Bisection and Newton-Raphson Methods of Root-Finding Problems. International Journal of Mathematics Trends and Technology, 19, 121-129. https://doi.org/10.14445/22315373/IJMTT-V19P516
[21]
Kazemi, M., Deep, A. and Nieto, J. (2023) An Existence Result with Numerical Solution of Nonlinear Fractional Integral Equations. Mathematical Methods in the Applied Sciences, 46, 10384-10399. https://doi.org/10.1002/mma.9128