For any form of potential of inflaton, numerically solve the Mukharnov equation, the e.o.m. of the primordial scalar perturbation; and compute the power spectrum of scalar perturbation.