Difference between revisions of "Dot"

From APL Wiki
Jump to navigation Jump to search
m
m (Smaller fraction)
 
Line 1: Line 1:
 
{{Glyphbox|.}}
 
{{Glyphbox|.}}
 
The [[glyph]] '''dot''' or '''period''' refers to the <code>.</code> character. It represents several unrelated concepts, some derived from traditional mathematical notation. The dot is one of the most [[wikipedia:Operator_overloading|overloaded]] APL symbols:
 
The [[glyph]] '''dot''' or '''period''' refers to the <code>.</code> character. It represents several unrelated concepts, some derived from traditional mathematical notation. The dot is one of the most [[wikipedia:Operator_overloading|overloaded]] APL symbols:
* In all dialects, it is used as [[wikipedia:decimal_separator|decimal_separator]], for example <source lang=apl inline>3.14</source> representing <math>3+\frac{14}{100}</math>.
+
* In all dialects, it is used as [[wikipedia:decimal_separator|decimal_separator]], for example <source lang=apl inline>3.14</source> representing <math>3+\tfrac{14}{100}</math>.
 
* In all dialects, it is a [[dyadic operator]] with function [[operand]]s, deriving a [[dyadic function]] (<source lang=apl inline>X f.g Y</source>) which is the generalised [[Inner Product]]. Specifically, (<source lang=apl inline>X +.× Y</source>) is the [[wikipedia:dot product|dot product]].
 
* In all dialects, it is a [[dyadic operator]] with function [[operand]]s, deriving a [[dyadic function]] (<source lang=apl inline>X f.g Y</source>) which is the generalised [[Inner Product]]. Specifically, (<source lang=apl inline>X +.× Y</source>) is the [[wikipedia:dot product|dot product]].
 
* In all dialects (although deprecated in [[SAX]]), dot with a [[Jot]] on on its left, forms the [[Outer Product]] operator.
 
* In all dialects (although deprecated in [[SAX]]), dot with a [[Jot]] on on its left, forms the [[Outer Product]] operator.

Latest revision as of 10:28, 13 May 2020

.

The glyph dot or period refers to the . character. It represents several unrelated concepts, some derived from traditional mathematical notation. The dot is one of the most overloaded APL symbols:

Due to its use in numeric constants, letting . be a dyadic operator that takes numeric operands or a function that takes numeric arguments, is potentially problematic or at least confusing:

      4.6
4.6
      4..6
4 5 6 
      4...10 ⍝ this parses as 4 .. 0.10
4 3 2 1
      4. .10
4 0.1
      4 . . 10
SYNTAX ERROR
      4 . . 10
              
Works in: NARS2000
APL glyphs [edit]
Information GlyphTyping glyphs (on Linux) ∙ UnicodeFontsMnemonics
Individual glyphs Jot () ∙ Right Shoe () ∙ Up Arrow () ∙ Zilde () ∙ High minus (¯) ∙ Dot (.) ∙ Del ()