
"""simple docstring"""





class     _UpperCAmelCase:



		def __init__(					self				,		__a)       ->       None:






							'''simple docstring'''
							_UpperCamelCase							 =  len(__a)
							_UpperCamelCase							 =  [0] * len_array

							if len_array > 0:
												_UpperCamelCase							 =  array[0]

							for i in range(1				,		__a):
												_UpperCamelCase							 =  self.prefix_sum[i - 1] + array[i]



		def 						UpperCAmelCase							(					self				,		__a				,		__a)       ->       int:






							'''simple docstring'''
							if start == 0:
												return self.prefix_sum[end]

							return self.prefix_sum[end] - self.prefix_sum[start - 1]




		def 						UpperCAmelCase							(					self				,		__a)       ->       bool:






							'''simple docstring'''
							_UpperCamelCase							 =  {0}
							for sum_item in self.prefix_sum:
												if sum_item - target_sum in sums:
																	return True

												sums.add(__a)

							return False


if __name__ == "__main__":
				import doctest

				doctest.testmod()











"""simple docstring"""
import math

from numpy import inf
from scipy.integrate import quad





def  lowerCamelCase_						(UpperCamelCase__		:		float							):
    if num <= 0:
        raise ValueError('''math domain error'''							)

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





def  lowerCamelCase_						(UpperCamelCase__		:		float     ,       UpperCamelCase__		:		float							):
    return math.pow(UpperCamelCase__     ,       z - 1							) * math.exp(-x							)


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

  testmod()


