Write a Blog >>
ICFP 2018
Sun 23 - Sat 29 September 2018 St. Louis, Missouri, United States
Thu 27 Sep 2018 14:30 - 15:10 at Texas Special - Talks IV Chair(s): Dominic Steinitz

Although its name would have you believe that numerical programming is about numbers (or “vectors of numbers” / matrices…), this is often not a good abstraction to start with.

The defining trait of the discipline is that it deals with approximate values on continuous scales. Often, those correspond to physical, measurable quantities (which are always only known up to some measurement-uncertainty). For many of those quantities, the description as a number or vector is the way to go, but for example for angles of direction, it quickly leads to problems: after a full rotation, you’re back at the starting point, and an algorithm that treats 390° and 30° as disparate values will not work reliably, nor one that considers 357° and 2° to be far apart.

The most common solution for such issues is to add problem-specific, ad-hoc special case distinctions; however that is error-prone and prevents the writing of generic algorithms. A safer option is to annotate through the type system that e.g. an angle lives not in ℝ but in the periodic space S1, the one-dimensional sphere. In other applications it may be higher-dimensional spheres, tori, etc.. To actually be able to use such values, one needs an abstraction that still allows expressing the relevant numerical operations.

Enter manifolds: topological spaces that look locally like a vector space, but not necessarily globally. In several dynamical CAS systems, this has been implemented by explicitly specifying charts, bijective mappings from a region in the space to a vector space.

Haskell’s type classes offer a particularly convenient alternative: an interface that generalises affine spaces, allowing directly considering the displacement between points in a sensibly typed manner. This introduces the notions of tangent vectors, cotangent vectors, Riemannian metrics etc. in an intuitive way, and allows generalising many numerical algorithms directly from their usual vector formulation to one that also works in non-flat spaces.

Geophysicist, Haskell hacker and musician.

Always in search of ways to bridge the gaps between these disciplines – in particular, bringing nice constructive, well-typed FP techniques to physics.

I’m currently writing a master’s thesis on the magnetic field of Neptune.

Thu 27 Sep
Times are displayed in time zone: (GMT-05:00) Guadalajara, Mexico City, Monterrey change

npfl-2018-papers
14:30 - 15:10: NPFL 2018 - Talks IV at Texas Special
Chair(s): Dominic SteinitzTweag I/O
npfl-2018-papers14:30 - 15:10
Talk
Justus SagemüllerUniversität zu Köln, Institut für Geophysik und Meteorologie