sum 2.5/1000 cos(e^(2.5n/1000)) from 1 to 1000