If you need a new “function” in Math, just use
func newfuncname(x, y)
… which would format the argument of the func keyword according to your formula’s functions setting (same formatting as, say, sin built-in function).
It seems that the 2 is automatically considered an argument to the new function, and will be formatted as number (it’s common to have things like sin45°); so for arctan2, you might need a workaround like
func arctan func2(y,x)
or, taking into account that arctan is already a pre-existing function, and Math inserts a small gap between function name and argument, it might even be better to use this:
nospace {arctan func2}(y,x)
The keyword is present in the Math’ Functions section of Elements pane: