

"""simple docstring"""
def 					a__						(						lowerCAmelCase    )	-> int:
      assert isinstance(lowerCAmelCase			,	lowerCAmelCase    ), F"""The input value of [n={number}] is not an integer"""

      if number == 1:
            return 2
      elif number < 1:
            UpperCAmelCase__			:							List[str]							=    F"""The input value of [n={number}] has to be > 0"""
            raise ValueError(lowerCAmelCase    )
      else:
            UpperCAmelCase__			:							str							=    sylvester(number - 1    )
            UpperCAmelCase__			:							List[str]							=    num - 1
            UpperCAmelCase__			:							int							=    num
            return lower * upper + 1


if __name__ == "__main__":
    print(f'''The 8th number in Sylvester\'s sequence: {sylvester(8)}''')




"""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()

