




'''simple docstring'''

def    _a    (							lowerCAmelCase_			,      lowerCAmelCase_	):





      """simple docstring"""



      while a != 0:
            _snake_case		:	List[Any]					     =     b % a, a
      return b




def    _a    (							lowerCAmelCase_			,      lowerCAmelCase_	):





      """simple docstring"""



      if gcd(lowerCAmelCase_			,      lowerCAmelCase_	) != 1:
            _snake_case		:	List[Any]					     =     f'''mod inverse of {a!r} and {m!r} does not exist'''
            raise ValueError(lowerCAmelCase_	)
      _snake_case		:	Any					     =     1, 0, a
      _snake_case		:	str					     =     0, 1, m
      while va != 0:
            _snake_case		:	List[Any]					     =     ua // va
            _snake_case		:	Union[str, Any]					     =     (ua - q * va), (ua - q * va), (ua - q * va), va, va, va
      return ua % m









'''simple docstring'''

import math

from numpy import inf
from scipy.integrate import quad




def    _a    (							lowerCAmelCase_	):





      """simple docstring"""



      if num <= 0:
            raise ValueError('''math domain error'''	)

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




def    _a    (							lowerCAmelCase_			,      lowerCAmelCase_	):





      """simple docstring"""



      return math.pow(lowerCAmelCase_			,      z - 1	) * math.exp(-x	)


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

   testmod()


