Nor
Revision as of 22:03, 10 September 2022 by Adám Brudzewsky (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")
Nor (⍱
) is a dyadic scalar boolean function which tests if neither argument is true: it returns 1 if both are 0 and 0 if at least one is 1. It represents Peirce's arrow or joint denial in Boolean logic. Nor is the boolean negation <syntaxhighlight lang=apl inline>~</source> of the Or function <syntaxhighlight lang=apl inline>∨</source>, and so its glyph is composed from those. However, fonts vary in how they compose them; some overlaying the glyphs (∨̴), and some stacking them (∨̃).
<syntaxhighlight lang=apl inline>⍱</source> | <syntaxhighlight lang=apl inline>0</source> | <syntaxhighlight lang=apl inline>1</source> |
---|---|---|
<syntaxhighlight lang=apl inline>0</source> | <syntaxhighlight lang=apl inline>1</source> | <syntaxhighlight lang=apl inline>0</source> |
<syntaxhighlight lang=apl inline>1</source> | <syntaxhighlight lang=apl inline>0</source> | <syntaxhighlight lang=apl inline>0</source> |
Examples
The following shows all possible combinations of inputs as a Boolean function.
<syntaxhighlight lang=apl>
0 0 1 1 ⍱ 0 1 0 1
1 0 0 0 </source>