import cmath
import math


def 				lowerCAmelCase__       (			a__    ,     a__    ,     a__    ,     a__ )      ->complex:




  '''simple docstring'''

  _UpperCamelCase           =    math.radians(_lowercase )
  _UpperCamelCase           =    math.radians(_lowercase )

  # Convert voltage and current to rectangular form
  _UpperCamelCase           =    cmath.rect(_lowercase    ,     _lowercase )
  _UpperCamelCase           =    cmath.rect(_lowercase    ,     _lowercase )

  # Calculate apparent power
  return voltage_rect * current_rect


if __name__ == "__main__":
   import doctest

   doctest.testmod()






from functools import lru_cache

@lru_cache
def  __lowerCamelCase					( _lowercase			)       ->      int:
     if num < 0:
          raise ValueError('Number should not be negative.'			)

     return 1 if num in (0, 1) else num * factorial(num - 1			)


if __name__ == "__main__":
 import doctest

 doctest.testmod()


