APL Wiki logo: Difference between revisions

Jump to navigation Jump to search
No change in size ,  01:42, 3 November 2019
m
Miraheze>Adám Brudzewsky
Miraheze>Adám Brudzewsky
Line 127: Line 127:
</source>
</source>
== Rounding ==
== Rounding ==
The last step is to round these numbers down. Traditional mathematics writes ''floor'' as <math>⌊x⌋</math> but APL is regular, and no function is denoted by two separated symbols. If the function takes a single argument, then the symbol will be on the left, so we write floor as <source lang=apl inline>⌊x</source>:
The last step is to round these numbers down. Traditional mathematics writes ''floor'' as <math>⌊x⌋</math> but APL is regular, so no function is denoted by two separated symbols. If the function takes a single argument, then the symbol will be on the left, so we write floor as <source lang=apl inline>⌊x</source>:
<source lang=apl>
<source lang=apl>
       ⌊∘.+⍨.5×4!⍨⍳5
       ⌊∘.+⍨.5×4!⍨⍳5
Line 137: Line 137:
</source>
</source>
And there it is!
And there it is!
== References ==
== References ==
<references />
<references />

Navigation menu