4,494
edits
m (Text replacement - "<source" to "<syntaxhighlight") |
m (Text replacement - "</source>" to "</syntaxhighlight>") Tags: Mobile edit Mobile web edit |
||
Line 18: | Line 18: | ||
0 9 18 9 36 45 18 63 72 9 90 | 0 9 18 9 36 45 18 63 72 9 90 | ||
0 10 10 30 20 10 30 70 40 90 10 | 0 10 10 30 20 10 30 70 40 90 10 | ||
</ | </syntaxhighlight>{{Works in|[[Dyalog APL]]}} | ||
While the mathematical definition of LCM does not cover non-integers, some implementations accept them as arguments. In this case, the return value of <syntaxhighlight lang=apl inline>R←X∧Y</ | While the mathematical definition of LCM does not cover non-integers, some implementations accept them as arguments. In this case, the return value of <syntaxhighlight lang=apl inline>R←X∧Y</syntaxhighlight> is chosen so that both <syntaxhighlight lang=apl inline>R÷X</syntaxhighlight> and <syntaxhighlight lang=apl inline>R÷Y</syntaxhighlight> are integers (or [[wikipedia:Gaussian integer|Gaussian integers]], when X and/or Y are [[complex]] numbers). | ||
<syntaxhighlight lang=apl> | <syntaxhighlight lang=apl> | ||
Line 31: | Line 31: | ||
6J2÷2J2 3J1 | 6J2÷2J2 3J1 | ||
2J¯1 2 | 2J¯1 2 | ||
</ | </syntaxhighlight>{{Works in|[[Dyalog APL]]}} | ||
== Description == | == Description == |