HOPL: Difference between revisions

Jump to navigation Jump to search
144 bytes added ,  22:23, 10 September 2022
m
Text replacement - "<source" to "<syntaxhighlight"
m (Text replacement - "</source>" to "</syntaxhighlight>")
m (Text replacement - "<source" to "<syntaxhighlight")
 
Line 4: Line 4:


Conference years appear to be given by the expression:
Conference years appear to be given by the expression:
<source lang=apl>
<syntaxhighlight lang=apl>
       1962++\⌽⍳16
       1962++\⌽⍳16
1978 1993 2007 2020 2032 2043 2053 2062 2070 2077 2083 2088 2092 2095 2097 2098
1978 1993 2007 2020 2032 2043 2053 2062 2070 2077 2083 2088 2092 2095 2097 2098
Line 12: Line 12:
=== HOPL IV conference badge ===
=== HOPL IV conference badge ===


One of the conference badges for HOPL IV features an APL expression <math>\div+\!/\div(\mathcal E \ne 0)/\mathcal E</math> or <source lang=apl inline>÷+/÷(E≠0)/E</syntaxhighlight> which computes multiple aspects of electrical circuits:
One of the conference badges for HOPL IV features an APL expression <math>\div+\!/\div(\mathcal E \ne 0)/\mathcal E</math> or <syntaxhighlight lang=apl inline>÷+/÷(E≠0)/E</syntaxhighlight> which computes multiple aspects of electrical circuits:


{|
{|
|<source lang=apl inline>÷</syntaxhighlight>||<source lang=apl inline>+/</syntaxhighlight>||<source lang=apl inline>÷</syntaxhighlight>||<source lang=apl inline>(E≠0)</syntaxhighlight>||<source lang=apl inline>/</syntaxhighlight>||<source lang=apl inline>E</syntaxhighlight>
|<syntaxhighlight lang=apl inline>÷</syntaxhighlight>||<syntaxhighlight lang=apl inline>+/</syntaxhighlight>||<syntaxhighlight lang=apl inline>÷</syntaxhighlight>||<syntaxhighlight lang=apl inline>(E≠0)</syntaxhighlight>||<syntaxhighlight lang=apl inline>/</syntaxhighlight>||<syntaxhighlight lang=apl inline>E</syntaxhighlight>
|-
|-
| colspan=6|<hr/>
| colspan=6|<hr/>
|-
|-
|||||||||||<source lang=apl inline>E</syntaxhighlight>||is a vector of real numeric values
|||||||||||<syntaxhighlight lang=apl inline>E</syntaxhighlight>||is a vector of real numeric values
|-
|-
|||||||<source lang=apl inline>(E≠0)</syntaxhighlight>||||||produces a Boolean mask indicating which components have a non-zero value
|||||||<syntaxhighlight lang=apl inline>(E≠0)</syntaxhighlight>||||||produces a Boolean mask indicating which components have a non-zero value
|-
|-
|||||||<source lang=apl inline>(E≠0)</syntaxhighlight>||<source lang=apl inline>/</syntaxhighlight>||<source lang=apl inline>E</syntaxhighlight>||uses the mask to filter the components, thus removing the zeros
|||||||<syntaxhighlight lang=apl inline>(E≠0)</syntaxhighlight>||<syntaxhighlight lang=apl inline>/</syntaxhighlight>||<syntaxhighlight lang=apl inline>E</syntaxhighlight>||uses the mask to filter the components, thus removing the zeros
|-
|-
|||||<source lang=apl inline>÷</syntaxhighlight>||||||||finds the reciprocal of those
|||||<syntaxhighlight lang=apl inline>÷</syntaxhighlight>||||||||finds the reciprocal of those
|-
|-
|||<source lang=apl inline>+/</syntaxhighlight>|||||||||||sums them up
|||<syntaxhighlight lang=apl inline>+/</syntaxhighlight>|||||||||||sums them up
|-
|-
|<source lang=apl inline>÷</syntaxhighlight>||||||||||||computes the reciprocal of that
|<syntaxhighlight lang=apl inline>÷</syntaxhighlight>||||||||||||computes the reciprocal of that
|}
|}


Navigation menu