

"""simple docstring"""
import cmath
import math




def 					a__						(						lowerCAmelCase			,	lowerCAmelCase			,	lowerCAmelCase			,	lowerCAmelCase    )	-> complex:
      UpperCAmelCase__			:							str							=    math.radians(lowerCAmelCase    )
      UpperCAmelCase__			:							Optional[int]							=    math.radians(lowerCAmelCase    )

      # Convert voltage and current to rectangular form
      UpperCAmelCase__			:							Union[str, Any]							=    cmath.rect(lowerCAmelCase			,	lowerCAmelCase    )
      UpperCAmelCase__			:							List[str]							=    cmath.rect(lowerCAmelCase			,	lowerCAmelCase    )

      # Calculate apparent power
      return voltage_rect * current_rect


if __name__ == "__main__":
    import doctest

    doctest.testmod()




"""simple docstring"""
import requests




def 					a__						(						lowerCAmelCase			,	lowerCAmelCase    )	-> None:
      UpperCAmelCase__			:							List[str]							=    {"""Content-Type""": """application/json"""}
      UpperCAmelCase__			:							List[str]							=    requests.post(lowerCAmelCase			,	json={"""text""": message_body}			,	headers=lowerCAmelCase    )
      if response.status_code != 2_00:
            UpperCAmelCase__			:							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>""")

