Not: Difference between revisions

Jump to navigation Jump to search
No change in size ,  26 August
m
typo
m (Text replacement - "<source" to "<syntaxhighlight")
Tags: Mobile edit Mobile web edit
m (typo)
 
Line 23: Line 23:
[[A Programming Language]] negates arrays using an overbar symbol like <math>\overline{p}</math>, matching a convention sometimes used in mathematics. In [[APL\360]] the current symbol <syntaxhighlight lang=apl inline>~</syntaxhighlight> was chosen, also due to its use in mathematics. Mathematical usage has arguably diverged from APL in this respect, as the negation of a variable <math>p</math> is now more often written <math>\neg p</math> when a prefix operator is desired.
[[A Programming Language]] negates arrays using an overbar symbol like <math>\overline{p}</math>, matching a convention sometimes used in mathematics. In [[APL\360]] the current symbol <syntaxhighlight lang=apl inline>~</syntaxhighlight> was chosen, also due to its use in mathematics. Mathematical usage has arguably diverged from APL in this respect, as the negation of a variable <math>p</math> is now more often written <math>\neg p</math> when a prefix operator is desired.


The arithmetic extension <syntaxhighlight lang=apl inline>~x</syntaxhighlight> {{←→}} <syntaxhighlight lang=apl inline>1-x</syntaxhighlight> was introduced to the array langauge family by [[J]]. For arguments in the interval <math>[0,1]</math> this extension may be seen as a probabilistic interpretation of negation.
The arithmetic extension <syntaxhighlight lang=apl inline>~x</syntaxhighlight> {{←→}} <syntaxhighlight lang=apl inline>1-x</syntaxhighlight> was introduced to the array language family by [[J]]. For arguments in the interval <math>[0,1]</math> this extension may be seen as a probabilistic interpretation of negation.


== Extensions ==
== Extensions ==
1

edit

Navigation menu