This article presents a novel method for solving a relativistic wave equation for a spin- 1/2 massive particle. Relativistic wavefunctions are obtained using neural networks, and a novel approach to solving the Klein–Gordon–Fock equation has been developed, inspired by the ancient method of Heron. Unlike the four-component Dirac bispinor, this approach uses two-component wavefunctions. The method has been validated through application to two well-known physical systems: a hydrogen-like atom and a charged particle in a uniform magnetic field. The obtained energy spectra are in complete agreement with the analytical solutions derived from the Dirac equation. The method can be applied to more complex problems in quantum physics and chemistry.
Kalitenko et al. (Sun,) studied this question.