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); }