

import re


def     __SCREAMING_SNAKE_CASE   (SCREAMING_SNAKE_CASE__			):
						snake_case_  =      re.compile(
						    R'''^(?:0|94|\+94|0{2}94)''' R'''7(0|1|2|4|5|6|7|8)''' R'''(-| |)''' R'''\d{7}$'''			)

						return bool(re.search(SCREAMING_SNAKE_CASE__    ,						SCREAMING_SNAKE_CASE__			)			)


if __name__ == "__main__":
					lowerCAmelCase_			      =      '''0094702343221'''

					print(is_sri_lankan_phone_number(phone))
'''simple docstring'''


import math





def    lowerCAmelCase       (		UpperCamelCase__					: float     ,       UpperCamelCase__					: float							):


	"""simple docstring"""
	if (
	    not isinstance(UpperCamelCase__     ,       (int, float)							)
	    or power_factor < -1
	    or power_factor > 1
	):
		raise ValueError('''power_factor must be a valid float value between -1 and 1.'''							)
	return apparent_power * power_factor





def    lowerCAmelCase       (		UpperCamelCase__					: float     ,       UpperCamelCase__					: float							):


	"""simple docstring"""
	if (
	    not isinstance(UpperCamelCase__     ,       (int, float)							)
	    or power_factor < -1
	    or power_factor > 1
	):
		raise ValueError('''power_factor must be a valid float value between -1 and 1.'''							)
	return apparent_power * math.sqrt(1 - power_factor**2							)


if __name__ == "__main__":
					import doctest

					doctest.testmod()
