OR

Author

Eric W. Weisstein
April 19, 2011

This notebook downloaded from http://mathworld.wolfram.com/notebooks/Logic/OR.nb.

For more information, see Eric's MathWorld entry http://mathworld.wolfram.com/OR.html.

©2011 Wolfram Research, Inc. except for portions noted otherwise

Truth Table

With[{op=Or},Grid[Prepend[Append[#,op@@#]&/@Flatten[Outer[List,{True,False},{True,False}],1],{A,B,op[A,B]}],Dividers->All]/.{True->"T",False->"F"}]//TraditionalForm

With[{op=Or},Grid[Prepend[Append[#,op@@#]&/@Flatten[Outer[List,{True,False},{True,False},{True,False}],2],{A,B,C,op[A,B,C]}],Dividers->All]/.{True->"T",False->"F"}]//TraditionalForm

BitOr

ListDensityPlot[Table[BitOr[x,y],{x,-31,31},{y,-31,31}],ColorFunction->Hue,
FrameLabel->TraditionalForm/@{x,y},
PlotLabel->TraditionalForm@BitOr[x,y],
Mesh->False,
FrameTicks->Join[Table[Transpose[{Range[1.5,63,10],Range[-30,31,10]}],{2}],{{}},{{}}]
]