Abstract
A hierarchy of six important structures from abstract algebra (groups, rings, fields etc.) is introduced as Gofer class definitions and laws about them. Many instance declarations are provided, explaining the algebraic construction of integers, quotients, adding i, function spaces, polynomials, and matrices. The definitions include generalized implementations of polynomial division and matrix inversion. Monadic parsers are provided for all constructs discussed. As an application, a one-line program is given for calculating the eigenvalue equation of a matrix.
Preview
Unable to display preview. Download preview PDF.
References
R. Bird and P. Wadler, Introduction to Functional Programming. Prentice Hall, 1988.
Jeroen Fokker, Functional programming. Course notes, Department of Computer Science, Utrecht University, 1992. Also available as Functioneel Programmeren and as Programación Funcional. From http://www.cs.ruu.nl/∼jeroen.
Jeroen Fokker, ‘Functional parsers'. In [JM95], pp. 1–23. Also http://www.cs.ruu.nl/∼jeroen.
Johan Jeurig, Luc Duponcheel and Doaitse Swierstra, Grammars and Parsing. Course notes, Department of Computer Science, Utrecht University, 1994. From http://www.cs.ruu.nl/∼luc.
Johan Jeuring and Erik Meijer (eds.), Advanced functional programming. Springer LNCS 925, 1995.
ark Jones, Gofer 2.30 release notes http://www.cs.nott.ac.uk/Department/Staff/mpj.
Neil Jones, Carsten Gomard and Peter Sestoft, Partial evaluation and automatic program generation. Prentice Hall, 1993.
Serge Lang, Linear Algebra. Addison-Wesley, 1970.
Lambert Meertens, Category theory, Course notes, Department of Computer Science, Utrecht University, 1995. Ask lambert@cs.ruu.nl.
Erik Meijer and Doaitse Swierstra, Implementation of Programming Languages. Course notes, Department of Computer Science, Utrecht University, 1995. From http://www.cs.ruu.nl/∼erik.
Philip Wadler, ‘Monads for functional programming'. In [JM95], pp. 24–52. Also: http://www.dcs.glasgow.ac.uk/∼wadler.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1995 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Fokker, J. (1995). Explaining algebraic theory with functional programs. In: Hartel, P.H., Plasmeijer, R. (eds) Funtional Programming Languages in Education. FPLE 1995. Lecture Notes in Computer Science, vol 1022. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-60675-0_43
Download citation
DOI: https://doi.org/10.1007/3-540-60675-0_43
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-60675-8
Online ISBN: 978-3-540-49252-8
eBook Packages: Springer Book Archive