Pātuhitia tēnei: Mathematical methods and programming