
import math




def    __UpperCamelCase     (				lowerCAmelCase__							:				float  ,   lowerCAmelCase__							:				float  ):

 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 > 3_6_0:
  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    __UpperCamelCase     (				lowerCAmelCase__							:				str  ):
 if n_term == "":
  return []
 __a :  list						=  []
 for temp in range(int(lowerCAmelCase__  )  ):
  series.append(f"1/{temp + 1}" if series else '''1'''  )
 return series


if __name__ == "__main__":
      lowercase__       =input('Enter the last number (nth term) of the Harmonic Series')
      print('Formula of Harmonic Series => 1+1/2+1/3 ..... 1/n')
      print(harmonic_series(nth_term))
