No. It’s ambiguous. In a math book or written by anyone that actually uses math, you don’t have a “%”
You group stuff below the line, and you use parens and brackets to group things like (a + b) and (x)(y) so that it is not ambiguous.
2/xy would be almost always interpreted differently than 2/x(x+y) which is ambiguous and could mean (2/x)(x+y) or 2/[(x)(x+y)]
unar is the free version and should be in Ubuntu