AI-Enhanced Performance Evaluation of Python, MATLAB, and Scilab for Solving Nonlinear Systems of Equations: A Comparative Study Using the Broyden Method
- 1 Department of Computer Science, Regentropfen College of Applied Sciences, Bolgatanga, Ghana
- 2 Department of Computer Science, Regentropfen College of Applied Sciences, Bolgatanga, Ghana
- 3 Department of Computer Science, Regentropfen College of Applied Sciences, Bolgatanga, Ghana
- 4 Department of Computer Science, Regentropfen College of Applied Sciences, Bolgatanga, Ghana
Abstract
This research extensively evaluates three leading mathematical soft ware packages: Python, MATLAB, and Scilab, in the context of solving nonlinear systems o f equations with five unknown variables. The study’s core ob jectives inclu de comparing software performance using standardized benchmar ks, 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 t he HP EliteBook, MATLAB consistently exhibits shorter computatio nal times than Python across all benchmark problems. However, Python maintains a low er robustness index for most problems, except for problem 3, wher e 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, whi le 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 researchers and practitioners in selecting tools for their unique challenges.
- 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
- 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
- Hahn, B. and Valentine, D.T. (2020) Essential MATLAB for Engineers and Scientists. Academic Press, Cambridge.
- Hanselman, D.C. and Littlefield, B.L. (2018) The Art of MATLAB. Cambridge University Press, Cambridge.
- 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
- Nagar, S. (2021) Introduction to Scilab. Notion Press, Chennai.
- Python Software Foundation (2021) Python 3.10.0 Documentation. https://docs.python.org/3/
- 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
- 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
- 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
- Biswa, N.D. (2012) Lecture Notes on Numerical Solution of Root-Finding Problems MATH 435.
- 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
- 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
- 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