No. You need to program an arithmetics interpreter for such a function.