Deakstadieđáhus: The mathematics of ship slamming