Jurnal Ilmiah Informatika dan Komputer
Vol. 2 No. 2 (2025): Desember 2025

Generating Unimodular Matrix in Python for Solving Systems of Linear Equations

Muhammad Irfan Mustakim (Unknown)
Diny Syarifah Sany (Unknown)



Article Info

Publish Date
06 Aug 2025

Abstract

Linear equation systems with integer solutions are widely used in modern computing fields such as cryptography and optimization, but conventional methods often produce inaccurate decimal solutions. To address this issue, this research developed a Python program based on NumPy that can efficiently generate unimodular matrices. The method involves three main stages: initializing an upper triangular matrix with diagonal elements of ±1, filling non-diagonal elements with random integers, and transforming the matrix through elementary row operations. Test results show that the program successfully generates unimodular matrices of sizes 4×4 to 9×9 with perfect accuracy (determinant exactly ±1), an average computation time of 0.5 seconds for a 4×4 matrix, and efficient memory usage (under 20 MB). The solutions to the linear equations are always exact integers, meeting the requirements for high-precision computation. This implementation not only provides a practical solution for integer linear equation systems but also opens up opportunities for applications in cryptographic algorithm development and optimization techniques that require absolute precision. The findings of this research confirm that numerical computation approaches can produce both accurate and efficient mathematical solutions.

Copyrights © 2025






Journal Info

Abbrev

informatech

Publisher

Subject

Computer Science & IT

Description

INFORMATECH : Jurnal Ilmiah Informatika dan Komputer (E-ISSN : 3047-4752) merupakan Jurnal nasional dengan akses terbuka yang menerbitkan artikel hasil penelitian di bidang Teknik Informatika dan Ilmu Komputer. Ruang Lingkup Jurnal meliputi Kecerdasan Buatan (Artificial Intellegence), Sistem ...