Is your feature request related to a problem or challenge?
The codes in acos.rs, asin.rs under the new functionn packege and codes in #9535 are quite similar.
Perhaps they could be simplified with the help of a common macro.
Describe the solution you'd like
A common macro similar to math_unary_function, used to define math UDFs.
Describe alternatives you've considered
No response
Additional context
No response