Create compute_kappa.m

Matlab script for computing kappa and for numerically integrating Eq. 8.