SMS: Basic numerical mathematics