A Comparison of Functional and Imperative Programming Techniques for Mathematical Software Development

Autor: Scott Frame, John W. Coffey
Jazyk: angličtina
Rok vydání: 2014
Předmět:
Zdroj: Journal of Systemics, Cybernetics and Informatics, Vol 12, Iss 2, Pp 49-53 (2014)
Druh dokumentu: article
ISSN: 1690-4524
Popis: Functional programming has traditionally been considered elegant and powerful, but also somewhat impractical for ordinary computing. Proponents of functional programming claim that the evolution of functional languages makes their use feasible in many domains. In this work, a popular imperative language (C++) and the leading functional language (Haskell) are compared in a math-intensive, real-world application using a variety of criteria: ease of implementation, efficiency, and readability. The programming tasks that were used as benchmarks involved mathematical transformations between local and global coordinate systems. Details regarding the application area and how language features of both languages were used to solve critical problems are described. The paper closes with some conclusions regarding applicability of functional programming for mathematical applications.
Databáze: Directory of Open Access Journals