The output Y of the gate circuit shown in the figure below is
If ¯a and ¯b are two vectors as shown in the figure, then ¯a.¯b will equal to |¯a||¯b| cos θ