calculate square of cos : cosĀ² x : (num) number that you want to calculate it's cosĀ²
x
double sqrtCos(num x) { return math.cos(x) * math.cos(x); }