redgar/builtins: add math functions.