A numerical method is presented for calculating the quantum-mechanical
transmission coefficient of one-dimensional problems with potentials
of arbitrary shapes. The method is demonstrated to give very accurate
results on two solvable examples. The numerical error in the calculate
d transmission coefficient is proportional to the second power of inte
gration step size for potentials without discontinuities; for potentia
ls with discontinuities, the dependence is linear.