ACM Home Page
Please provide us with feedback. Feedback
A notation for the GCD and LCM functions
Full text PdfPdf (340 KB)
Source International Conference on APL archive
Proceedings of seventh international conference on APL table of contents
Pisa, Italy
Pages: 240 - 243  
Year of Publication: 1975
Author
Sponsors
CVD : CVD (Switzerland)
SIGAPL: ACM Special Interest Group on APL Programming Language
AFCET : Assoc Francaise des Sciences
AICA : Assoc Italianai de Calcolo Automatico
University of Pisa : University of Pisa
BCS-Displays : BCS/Displays
CNUCE Institute : CNUCE Institute
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 7,   Downloads (12 Months): 29,   Citation Count: 7
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/800117.803810
What is a DOI?

ABSTRACT

This paper proposes a notation to be used for the greatest common divisor (gcd) and least common multiple (1cm) functions in APL. The notation proposed is that in use for the logical or and and functions: @@@@ for gcd and &Lgr; for lcm. For this reason, special attention is paid to the cases of gcd and lcm for the arguments 0 and 1. Also, because we wish to define the functions for negative and complex rational values as well as for positive integers, we discuss the functions more generally than is the case in standard number theory texts, which usually restrict their discussions to positive integers. For this reason we give proofs of some of the basic theorems concerning gcd and lcm, written to insure that they are valid for the entire domain of values for which it is proposed the APL functions be defined. The discussion in this paper is couched in terms of integral arguments. The theoretical extension to rational arguments is an easy one, and it is assumed that the gcd and lcm functions, which depend on the residue function for their definitions, will be implemented for non-integral arguments, just as is the residue function, with all the practical difficulties which this entails. In this paper, the terms “greatest” and “least” are taken to refer to magnitudes, and the terms “divisor” and “multiple” mean integer divisor and integer multiple.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
Birkhoff, G., and S. MacLane, A Survey of Modern Algebra, third edition, Macmillan, New York, 1965
 
2
Greub, W. H., Linear Algebra, third edition, Springer-Verlag, New York, 1967
 
3
Falkoff, A. D., and K. E. Iverson, APL 360 User's Manual, Yorktown Heights, N. Y., 1968
 
4
Iverson, K. E., Algebra: an Algorithmic Treatment, Addison Wesley, Menlo Park, California, 1972
5
 
6
McDonnell, E. E., "Complex Floor," APL Congress 73, Gjerlov et al eds., North Holland, Amsterdam, 1973
 
7
MacDuffee, C. C., "On the Concept of Divisor," American Mathematical Monthly, 51, 1944
 
8
Ore, O., Number Theory and its History, McGraw-Hill, N. Y., 1948
 
9
Vinogradov, I. M., Elements of Number Theory, Dover, N. Y., 1954