cospi
Cospi is a shorthand mathematical and programming term for the function defined by cospi(x) = cos(pi * x). It is used in several programming languages and mathematical libraries as a convenient way to compute the cosine of a quantity expressed in units of pi, and to help manage numerical accuracy when the input is near multiples of pi.
For real x, cospi(x) takes values in the interval [-1, 1]. It is an even function, meaning
Implementation and use vary by language. In languages such as Julia, cospi (and related sinpi) are built-in