Symbol Epsilon: Difference between revisions
(new) |
(added examples, expanded) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
<h1> {epsilon} — | <h1> {epsilon} — '''is an Element of''' — Keystroke is usually Alt-e; Character(⎕UCS) 8714</h1> | ||
==Usage== | ==Usage== | ||
== | ==Examples== | ||
== | <pre> | ||
5 ∊ 1 2 3 4 5 ⍝ determine if 5 is an element of the set of numbers from 1 through 5, result just below 1 = Yes or true, so 5 IS an element of 1 through 5. | |||
1 | |||
1 2 3 4 5 ∊ 5 ⍝ determine if the set of numbers from 1 through 5 contains the integer 5. Results 0=False, 1=True | |||
0 0 0 0 1 | |||
(⍳5) ∊ 5 ⍝ determine if the set of numbers from 1 through 5 (iota 5) contains the integer 5. | |||
0 0 0 0 1 | |||
'this is text' ∊ 't' ⍝ determine if a text phrase contains the letter 't', 1=True, 0=False | |||
1 0 0 0 0 0 0 0 1 0 0 1 | |||
</pre> | |||
==See Also== | |||
{{Language Toolbar}} | {{Language Toolbar}} | ||
[[Category:Mouse Group 7|E]] | |||
[[Category:Symbols|E]] | |||
Latest revision as of 13:17, 8 February 2016
∊ — is an Element of — Keystroke is usually Alt-e; Character(⎕UCS) 8714
Usage
Examples
5 ∊ 1 2 3 4 5 ⍝ determine if 5 is an element of the set of numbers from 1 through 5, result just below 1 = Yes or true, so 5 IS an element of 1 through 5.
1
1 2 3 4 5 ∊ 5 ⍝ determine if the set of numbers from 1 through 5 contains the integer 5. Results 0=False, 1=True
0 0 0 0 1
(⍳5) ∊ 5 ⍝ determine if the set of numbers from 1 through 5 (iota 5) contains the integer 5.
0 0 0 0 1
'this is text' ∊ 't' ⍝ determine if a text phrase contains the letter 't', 1=True, 0=False
1 0 0 0 0 0 0 0 1 0 0 1
See Also
{{#ifeq:{{{en}}}|4||title="match" style="border-width:thick; border-color:blue; background-color:yellow;"|≡ {{#ifeq:{{{en}}}|7||title="iota" style="border-width:thick; border-color:blue; background-color:yellow;" |⍳ {{#ifeq:{{{en}}}|9||title="slash" style="border-width:thick; border-color:blue; background-color:yellow;" |/ {{#ifeq:{{{en}}}|11||title="diamond" style="border-width:thick; border-color:blue; background-color:yellow;" |⋄ {{#switch: {{{en}}}| NARS 2000 Lang Tool Bar {{#ifeq:{{{en}}}|1||title="assign" style="border-width:thick; border-color:blue; background-color:yellow;" |← |
→ | bgcolor=cyan | title="assign" |← | → | }}
{{#ifeq:{{{en}}}|2||title="plus" style="border-width:thick; border-color:blue; background-color:yellow;" |+ |
- | × | ÷ | * | ⍟ | ⌹ | ○ | ! | ? | √ | bgcolor=cyan | title="plus" |+ | - | × | ÷ | * | ⍟ | ⌹ | ○ | ! | ? | √ | }}
{{#ifeq:{{{en}}}|3||title="mod" style="border-width:thick; border-color:blue; background-color:yellow;" || |
⌈ | ⌊ | ⊥ | ⊤ | ⊣ | ⊢ | |||||||||||||||||||
| ⌈ | ⌊ | ⊥ | ⊤ | ⊣ | ⊢ | ||||||||||||||||||||||||||||||||||||||||||||||||
| ≢ | < | ≤ | = | ≥ | > | ≠ | bgcolor=cyan | title="match" |≡ | ≢ | < | ≤ | = | ≥ | > | ≠ | }}
{{#ifeq:{{{en}}}|5||title="down caret" style="border-width:thick; border-color:blue; background-color:yellow;" |∨ |
∧ | ⍱ | ⍲ | bgcolor=cyan | title="down caret" |∨ | ∧ | ⍱ | ⍲ | }}
{{#ifeq:{{{en}}}|6||title="take" style="border-width:thick; border-color:blue; background-color:yellow;" |↑ |
↓ | ⊂ | ⊃ | ⌷ | ⍋ | ⍒ | ||||||||||||||||||||||
| ↓ | ⊂ | ⊃ | ⌷ | ⍋ | ⍒ | ||||||||||||||||||||||||||||||||||||||||||||||||
| ∊ | ⍸ | ⍷ | ∪ | ∩ | ⊆ | ⊇ | ~ | § | π | .. | bgcolor=cyan | title="iota" |⍳ | ∊ | ⍸ | ⍷ | ∪ | ∩ | ⊆ | ⊇ | ~ | § | π | .. | }}
{{#ifeq:{{{en}}}|8||title="comma" style="border-width:thick; border-color:blue; background-color:yellow;" |, |
⍪ | ⍴ | ⌽ | ⊖ | ⍉ | ||||||||||||||||||||||||
| ⍪ | ⍴ | ⌽ | ⊖ | ⍉ | |||||||||||||||||||||||||||||||||||||||||||||||||
| \ | ⌿ | ⍀ | ⊙ | ¨ | ⍨ | ⍤ | ⍡ | ⍥ | ⍦ | . | ∘ | ⍠ | ‼ | ⌻ | ∂ | ∫ | bgcolor=cyan | title="slash" |/ | \ | ⌿ | ⍀ | ⊙ | ¨ | ⍨ | ⍤ | ⍣ | ⍡ | ⍥ | ⍦ | . | ∘ | ⍠ | ‼ | ⌻ | ∂ | ∫ | }}
{{#ifeq:{{{en}}}|10||title="quotequad" style="border-width:thick; border-color:blue; background-color:yellow;" |⍞ |
⎕ | ⍎ | ⍕ | |||||||||||||
| ⎕ | ⍎ | ⍕ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| ⍝ | ∇ | ∆ | ⍙ | _ | ⍺ | ⍵ | bgcolor=cyan | title="diamond" |⋄ | ⍝ | ∇ | ∆ | ⍙ | _ | ⍺ | ⍵ | }}
{{#ifeq:{{{en}}}|12||title="neg" style="border-width:thick; border-color:blue; background-color:yellow;" |¯ |
⍬ | ∞ | title="neg" |¯ | ⍬ | ∞ | ∅ | |||||||||||||||||||||||||||||||
| colspan=8 |Second Row | i j k | a | b | e | g | p | r | v | x | z | colspan=8 |Second Row | i j k | a | b | e | g | p | r | v | x | z | colspan=8 |Second Row | i j k | a | b | e | g | p | r | v | x | z | colspan=6 |Second Row | i j k | i j k l | g | p | r | v | x
}} | |||||||||||||