cos method Null safety

void cos()

Calculates cos for each element.

Element i is calculated with the formula:

x[i] = cos(x[i]);

Implementation

void cos();