Nor: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Built-in|Nor|⍱}} is a [[dyadic]] [[scalar function|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 | {{Built-in|Nor|⍱}} is a [[dyadic]] [[scalar function|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 [[wikipedia:logical NOR|joint denial]] in Boolean logic. Nor is the [[not|boolean negation]] <source lang=apl inline>~</source> of the [[Or]] function <source 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 (∨̃). | ||
{|class=wikitable | {|class=wikitable |
Revision as of 05:49, 2 June 2020
⍱
|
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 ~
of the Or function ∨
, and so its glyph is composed from those. However, fonts vary in how they compose them; some overlaying the glyphs (∨̴), and some stacking them (∨̃).
⍱ |
0 |
1
|
---|---|---|
0
|
1 |
0
|
1
|
0 |
0
|
Examples
The following shows all possible combinations of inputs as a Boolean function.
0 0 1 1 ⍱ 0 1 0 1 1 0 0 0