Indonesian Journal of Education and Mathematical Science
Vol 7, No 2 (2026)

Comparative Study of Secant Method and Newton-Raphson Method in Finding the Molar Volume Value of Gas Using Python

Juwariyah, Tatik (Unknown)
Rhakasywi, Damora (Unknown)
Janan, Syifaul (Unknown)
Melati, Asih (Unknown)



Article Info

Publish Date
02 May 2026

Abstract

Determining the molar volume of a real gas requires solving the nonlinear Van der Waals equation. This study aims to compare the efficiency and accuracy of the Newton-Raphson method and the Secant method in solving the Van der Waals equation using the Python programming language. The case study examines the determination of the molar volume of methane gas at a pressure of 56 atm and a temperature of 450 K. The comparison parameters used are the number of iterations and the speed of convergence with an error tolerance of 10⁻⁷. The results show that the Newton-Raphson method requires fewer iterations, namely 4, with a computational time of 0.00012 s. In contrast, the Secant method requires more iterations, namely 6, and a computational time of 0.00015 s. The Newton-Raphson method is less practical because it necessitates the calculation of the derivative of the function, whereas the Secant method is more practical for application in Python scripts as it only requires the calculation of the Van ders Waals equation function.

Copyrights © 2026






Journal Info

Abbrev

IJEMS

Publisher

Subject

Computer Science & IT Education Languange, Linguistic, Communication & Media Library & Information Science Mathematics

Description

Indonesian Journal of Education and Mathematic Sains I(JEMS) is a Journal that contains Information on Education and Science. This journal is managed by Muhammadiyah University of North Sumatra (UMSU). This journal is an online journal using OJS system (Open Journal System) which has e-issn from ...