Symbol Epsilon: Difference between revisions

From NARS2000
Jump to navigationJump to search
No edit summary
(added examples, expanded)
 
Line 1: Line 1:
__NOTOC__
__NOTOC__
<h1> {epsilon} &mdash; (Replace this with Meaning of symbol) &mdash; Keystroke ?ALT+X &mdash; Character 0000</h1>
<h1> {epsilon} &mdash; '''is an Element of''' &mdash; Keystroke is usually Alt-e; Character(⎕UCS) 8714</h1>
==Usage==
==Usage==
==Example==
==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==
==See Also==


{{Language Toolbar}}
{{Language Toolbar}}
[[Category:Mouse Group 7|E]]
[[Category:Mouse Group 7|E]]
[[Category:Symbols|E]]
[[Category:Symbols|E]]

Latest revision as of 17: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

NARS 2000 Lang
Tool
Bar
+ - × ÷ * ! ? |
< = >
~ § π .. ,
/ \ ¨ .
_ ¯
Second Row i j k i j k l g p r v x