
"""simple docstring"""







import re

from filelock import FileLock


try:
							import nltk

							lowerCamelCase__           =	True
except (ImportError, ModuleNotFoundError):
							lowerCamelCase__           =	False

if NLTK_AVAILABLE:
							with FileLock(""".lock""") as lock:
														nltk.download("""punkt""", quiet=True)
def 					__lowerCAmelCase       (_UpperCamelCase	):
	re.sub('<n>' ,						'' ,						_UpperCamelCase	)  # remove pegasus newline char
	assert NLTK_AVAILABLE, "nltk must be installed to separate newlines between sentences. (pip install nltk)"
	return "\n".join(nltk.sent_tokenize(_UpperCamelCase	)	)

"""simple docstring"""







def 					__lowerCAmelCase       (_UpperCamelCase ,						_UpperCamelCase	):

	if density <= 0:
		raise ValueError('Impossible fluid density'	)
	if bulk_modulus <= 0:
		raise ValueError('Impossible bulk modulus'	)

	return (bulk_modulus / density) ** 0.5


if __name__ == "__main__":
							import doctest

							doctest.testmod()