Electronic Proceedings in Theoretical Computer Science (Nov 2016)

Domain-Specific Languages of Mathematics: Presenting Mathematical Analysis Using Functional Programming

  • Cezar Ionescu,
  • Patrik Jansson

DOI
https://doi.org/10.4204/EPTCS.230.1
Journal volume & issue
Vol. 230, no. Proc. TFPIE 2015/6
pp. 1 – 15

Abstract

Read online

We present the approach underlying a course on "Domain-Specific Languages of Mathematics", currently being developed at Chalmers in response to difficulties faced by third-year students in learning and applying classical mathematics (mainly real and complex analysis). The main idea is to encourage the students to approach mathematical domains from a functional programming perspective: to identify the main functions and types involved and, when necessary, to introduce new abstractions; to give calculational proofs; to pay attention to the syntax of the mathematical expressions; and, finally, to organise the resulting functions and types in domain-specific languages.