3 input and gate function site:electronics.stackexchange.com - Search