dcos function

Calculate cosine of an angle