
'''simple docstring'''
def    _UpperCamelCase						(       SCREAMING_SNAKE_CASE__ ,       SCREAMING_SNAKE_CASE__			)  ->							int:


		'''simple docstring'''


		return int((input_a, input_a).count(0			) != 0			)




def    _UpperCamelCase						(       )  ->							None:


		'''simple docstring'''


		assert nand_gate(0 ,       0			) == 1
		assert nand_gate(0 ,       1			) == 1
		assert nand_gate(1 ,       0			) == 1
		assert nand_gate(1 ,       1			) == 0


if __name__ == "__main__":
						print(nand_gate(0, 0))
						print(nand_gate(0, 1))
						print(nand_gate(1, 0))
						print(nand_gate(1, 1))




'''simple docstring'''
import numpy as np




def    _UpperCamelCase						(       SCREAMING_SNAKE_CASE__			)  ->							np.ndarray:


		'''simple docstring'''


		return 1 / (1 + np.exp(-vector			))




def    _UpperCamelCase						(       SCREAMING_SNAKE_CASE__			)  ->							np.ndarray:


		'''simple docstring'''


		return vector * sigmoid(SCREAMING_SNAKE_CASE__			)


if __name__ == "__main__":
						import doctest

						doctest.testmod()


