lrm: make basic math operations take varargs