Functions and applications for the NUM6 course