
import math





def     _a					(						lowerCamelCase,	lowerCamelCase							):

 if initial_intensity < 0:
  raise ValueError("""The value of intensity cannot be negative"""							)
  # handling of negative values of initial intensity
 if angle < 0 or angle > 360:
  raise ValueError("""In Malus Law, the angle is in the range 0-360 degrees"""							)
  # handling of values out of allowed range
 return initial_intensity * (math.cos(math.radians(lowerCamelCase							)							) ** 2)


if __name__ == "__main__":
      import doctest

      doctest.testmod(name="""malus_law""")






def     _a					(						lowerCamelCase							):

 if p < 2:
  raise ValueError("""p should not be less than 2!"""							)
 elif p == 2:
  return True

 lowerCamelCase		:	Any							=      4
 lowerCamelCase		:	List[str]							=      (1 << p) - 1
 for _ in range(p - 2							):
  lowerCamelCase		:	List[Any]							=      ((s * s) - 2) % m
 return s == 0


if __name__ == "__main__":
      print(lucas_lehmer_test(7))
      print(lucas_lehmer_test(1_1))




