How to use same vector-valued mathematical expressions with both ufl and numpy?

Maybe this ?