How to add cosine function of single neutron scattering on nanodiamond particle

Hi experts.

I am looking for the implementation of a single neutron scattering on a nanodiamond particle in which neutron will change its direction by a defined angle

I have to estimate two columns which consisted of the cosine function and CDF (Cumulative Distribution Function) like

Cos(theta) CDF

-1.0000 0.
-0.9998 5.992295888953864e-7
-0.9996 1.198578911300876e-6


0.0000 0.006082212370211956


1.0000 1.

Best regards,
Eyvaz