



from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_sentencepiece_available


lowercase_	       =			{}

try:
				if not is_sentencepiece_available():
								raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
				pass
else:
				lowercase_	       =			['''BartphoTokenizer''']

if TYPE_CHECKING:
				try:
								if not is_sentencepiece_available():
												raise OptionalDependencyNotAvailable()
				except OptionalDependencyNotAvailable:
								pass
				else:
								from .tokenization_bartpho import BartphoTokenizer

else:
				import sys

				lowercase_	       =			_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)









import math

from numpy import inf
from scipy.integrate import quad






def 					__lowerCAmelCase		(  __lowerCamelCase	:    float	)  ->						float:
					if num <= 0:
										raise ValueError("""math domain error"""	)

					return quad(__lowerCamelCase				,   0				,   __lowerCamelCase				,   args=(__lowerCamelCase)	)[0]






def 					__lowerCAmelCase		(  __lowerCamelCase	:    float				,   __lowerCamelCase	:    float	)  ->						float:
					return math.pow(__lowerCamelCase				,   z - 1	) * math.exp(-x	)


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

				testmod()




