This document discusses the numerical calculation of observational parameters for inflationary cosmology models, specifically tachyon inflation models and Randall-Sundrum braneworld models. The author develops software to solve the dynamical equations for tachyon scalar fields and radion fields during inflation. The software allows calculation of the scalar spectral index, tensor-to-scalar ratio, and number of e-folds for different model parameters. The best fitting results are obtained for tachyon potentials with 60 ≤ N ≤ 90 e-folds and dimensionless parameter 1≤ κ ≤ 10. The software provides a tool to test a wide range of inflationary models by inputting the corresponding Hamiltonian and Friedmann equations.