





def 						lowerCamelCase__     (     UpperCamelCase__			:       int       ,    UpperCamelCase__			:       List[Any]						)			-> Union[str, Any]:



					'''simple docstring'''




					_snake_case									=				(boundary[1] - boundary[0]) / steps
					_snake_case									=				boundary[0]
					_snake_case									=				boundary[1]
					_snake_case									=				make_points(UpperCamelCase__       ,    UpperCamelCase__       ,    UpperCamelCase__						)
					_snake_case									=				0.0
					y += (h / 2.0) * f(UpperCamelCase__						)
					for i in x_i:
										# print(i)
										y += h * f(UpperCamelCase__						)
					y += (h / 2.0) * f(UpperCamelCase__						)
					return y





def 						lowerCamelCase__     (     UpperCamelCase__			:       str       ,    UpperCamelCase__			:       Union[str, Any]       ,    UpperCamelCase__			:       Tuple						)			-> List[Any]:



					'''simple docstring'''




					_snake_case									=				a + h
					while x < (b - h):
										yield x
										_snake_case									=				x + h





def 						lowerCamelCase__     (     UpperCamelCase__			:       List[Any]						)			-> List[Any]:  # enter your function here



					'''simple docstring'''




					_snake_case									=				(x - 0) * (x - 0)
					return y





def 						lowerCamelCase__     (     )			-> str:



					'''simple docstring'''




					_snake_case									=				0.0  # Lower bound of integration
					_snake_case									=				1.0  # Upper bound of integration
					_snake_case									=				10.0  # define number of steps or resolution
					_snake_case									=				[a, b]  # define boundary of integration
					_snake_case									=				method_a(UpperCamelCase__       ,    UpperCamelCase__						)
					print(F'''y = {y}'''						)


if __name__ == "__main__":
					main()










from cva import destroyAllWindows, imread, imshow, waitKey





def 						lowerCamelCase__     (     UpperCamelCase__			:       Optional[int]						)			-> Optional[int]:



					'''simple docstring'''




					_snake_case							,     _snake_case									=				img.shape[0], img.shape[1]

					# converting each pixel's color to its negative
					for i in range(UpperCamelCase__						):
										for j in range(UpperCamelCase__						):
															_snake_case									=				[255, 255, 255] - img[i][j]

					return img


if __name__ == "__main__":
					# read original image
					UpperCAmelCase_      							=     imread("""image_data/lena.jpg""", 1)

					# convert to its negative
					UpperCAmelCase_      							=     convert_to_negative(img)

					# show result image
					imshow("""negative of original image""", img)
					waitKey(0)
					destroyAllWindows()



