Mathematics with diffpack