






import cmath
import math







def 	_UpperCamelCase   (    UpperCamelCase_       :					float    ,       UpperCamelCase_       :					float    ,       UpperCamelCase_       :					float    ,       UpperCamelCase_       :					float		)  ->   Optional[Any]:

						"""simple docstring"""



						lowerCAmelCase__    						=						math.radians(__lowercase		)
						lowerCAmelCase__    						=						math.radians(__lowercase		)

						# Convert voltage and current to rectangular form
						lowerCAmelCase__    						=						cmath.rect(__lowercase    ,       __lowercase		)
						lowerCAmelCase__    						=						cmath.rect(__lowercase    ,       __lowercase		)

						# Calculate apparent power
						return voltage_rect * current_rect


if __name__ == "__main__":
					import doctest

					doctest.testmod()













def 	_UpperCamelCase   (    UpperCamelCase_       :					int		)  ->   int:

						"""simple docstring"""



						if not isinstance(UpperCamelCase_    ,       UpperCamelCase_		):
												raise ValueError('multiplicative_persistence() only accepts integral values'		)
						if num < 0:
												raise ValueError('multiplicative_persistence() does not accept negative values'		)

						lowerCAmelCase__    						=						0
						lowerCAmelCase__    						=						str(UpperCamelCase_		)

						while len(UpperCamelCase_		) != 1:
												lowerCAmelCase__    						=						[int(UpperCamelCase_		) for i in num_string]

												lowerCAmelCase__    						=						1
												for i in range(0    ,       len(UpperCamelCase_		)		):
																		total *= numbers[i]

												lowerCAmelCase__    						=						str(UpperCamelCase_		)

												steps += 1
						return steps







def 	_UpperCamelCase   (    UpperCamelCase_       :					int		)  ->   int:

						"""simple docstring"""



						if not isinstance(UpperCamelCase_    ,       UpperCamelCase_		):
												raise ValueError('additive_persistence() only accepts integral values'		)
						if num < 0:
												raise ValueError('additive_persistence() does not accept negative values'		)

						lowerCAmelCase__    						=						0
						lowerCAmelCase__    						=						str(UpperCamelCase_		)

						while len(UpperCamelCase_		) != 1:
												lowerCAmelCase__    						=						[int(UpperCamelCase_		) for i in num_string]

												lowerCAmelCase__    						=						0
												for i in range(0    ,       len(UpperCamelCase_		)		):
																		total += numbers[i]

												lowerCAmelCase__    						=						str(UpperCamelCase_		)

												steps += 1
						return steps


if __name__ == "__main__":
					import doctest

					doctest.testmod()





