The work provides an overview on modern nuclear astrophysics by summarizing recent achievements in studies of light nuclei and thermonuclear processes at low and ultralow energies in the Universe. Special focus lies on mathematical methods and computer programs for calculating nuclear characteristics for thermonuclear reactions.