Tangent tangent correlation function

Dear all,
Could someone help me with a script file to plot the tangent tangent correlation function of a polyethylene chain with 10 monomer untis

Thanks ,
Deepa