




"""simple docstring"""

import math






def 		_snake_case	(   _snake_case				:   float							,    _snake_case				:   float				)       ->   float:






      '''simple docstring'''


      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_60:
            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(_snake_case				)				) ** 2)


if __name__ == "__main__":
       import doctest

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






"""simple docstring"""







import requests

def  __SCREAMING_SNAKE_CASE		(			lowerCamelCase_:							str     ,		lowerCamelCase_:							str ):
						"""simple docstring"""






						snake_case   :			List[str]						    = {"Content-Type": "application/json"}
						snake_case   :			int						    = requests.post(lowerCamelCase_     ,		json={"text": message_body}     ,		headers=lowerCamelCase_ )
						if response.status_code != 2_0_0:
												snake_case   :			str						    = (
												    "Request to slack returned an error "
												    f'''{response.status_code}, the response is:\n{response.text}'''
												)
												raise ValueError(lowerCamelCase_ )


if __name__ == "__main__":
			# Set the slack url to the one provided by Slack when you create the webhook at
			# https://my.slack.com/services/new/incoming-webhook/
			send_slack_message('<YOUR MESSAGE BODY>', '<SLACK CHANNEL URL>')



