Infinity: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: added syntax colouring, marked p2js compatible) |
Not a robot (talk | contribs) (Add APL) |
||
Line 124: | Line 124: | ||
error char: * |
error char: * |
||
</pre> |
</pre> |
||
=={{header|APL}}== |
|||
For built-in functions, reduction over an empty list returns the identity value for that function. |
|||
E.g., <code>+/⍬</code> gives <code>0</code>, and <code>×/⍬</code> gives 1. |
|||
The identity value for <code>⌊</code> (minimum) is the largest possible value. For APL implementations |
|||
that support infinity, this will be infinity. Otherwise, it will be some large, but finite value. |
|||
<lang apl>inf ← {⌊/⍬}</lang> |
|||
{{out}} |
|||
[[GNU APL]]: |
|||
<pre>∞</pre> |
|||
[[Dyalog APL]]: |
|||
<pre>1.797693135E308</pre> |
|||
=={{header|Argile}}== |
=={{header|Argile}}== |