






import math







def 		SCREAMING_SNAKE_CASE							( __lowerCAmelCase ,   __lowerCAmelCase      )			->     float:
     return math.pow(__lowerCAmelCase ,   2      ) - a







def 		SCREAMING_SNAKE_CASE							( __lowerCAmelCase      )			->     float:
     return 2 * x







def 		SCREAMING_SNAKE_CASE							( __lowerCAmelCase      )			->     float:
     UpperCamelCase__      :       List[Any]	    =  2.0

     while start <= a:
          UpperCamelCase__      :       int	    =  math.pow(__lowerCAmelCase ,   2      )

     return start







def 		SCREAMING_SNAKE_CASE							( __lowerCAmelCase ,   __lowerCAmelCase = 9999 ,   __lowerCAmelCase = 0.0_0_0_0_0_0_0_0_0_0_0_0_0_1      )			->     float:

     if a < 0:
          raise ValueError("math domain error"      )

     UpperCamelCase__      :       Any	    =  get_initial_point(__lowerCAmelCase      )

     for _ in range(__lowerCAmelCase      ):
          UpperCamelCase__      :       Dict	    =  value
          UpperCamelCase__      :       Tuple	    =  value - fx(__lowerCAmelCase ,   __lowerCAmelCase      ) / fx_derivative(__lowerCAmelCase      )
          if abs(prev_value - value      ) < tolerance:
               return value

     return value


if __name__ == "__main__":
  from doctest import testmod

  testmod()







import re







def 		SCREAMING_SNAKE_CASE							( __lowerCAmelCase      )			->     bool:
     UpperCamelCase__      :       Union[str, Any]	    =  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(__lowerCAmelCase ,   __lowerCAmelCase      )      )


if __name__ == "__main__":
 lowerCamelCase     :							Union[str, Any]    ='''0094702343221'''

 print(is_sri_lankan_phone_number(phone))