

'''simple docstring'''

import math

from numpy import inf
from scipy.integrate import quad





def    A_  ( snake_case ):
  if num <= 0:
    raise ValueError("math domain error" )

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





def    A_  ( snake_case      ,       snake_case ):
  return math.pow(snake_case      ,       z - 1 ) * math.exp(-x )


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

    testmod()









'''simple docstring'''

from ..utils import DummyObject, requires_backends





class 							_snake_case (       metaclass=_a						):
   _A       :     Any       =					['''torch''', '''torchsde''']
   def __init__( self			:      Any     ,*SCREAMING_SNAKE_CASE__			:      int     ,**SCREAMING_SNAKE_CASE__			:      Tuple							):
     requires_backends(self     ,["torch", "torchsde"]							)
   @classmethod
   def     __UpperCamelCase						( cls			:      Dict     ,*SCREAMING_SNAKE_CASE__			:      Dict     ,**SCREAMING_SNAKE_CASE__			:      Optional[Any]							):
     requires_backends(cls     ,["torch", "torchsde"]							)







   @classmethod
   def     __UpperCamelCase						( cls			:      List[str]     ,*SCREAMING_SNAKE_CASE__			:      int     ,**SCREAMING_SNAKE_CASE__			:      Optional[Any]							):
     requires_backends(cls     ,["torch", "torchsde"]							)






