def METHOD_NAME(self, context, layout):
    layout.prop(self, "formula1", text="")
    layout.prop(self, "formula2", text="")
    layout.prop(self, "formula3", text="")
    layout.label(text="Output:")
    layout.prop(self, "output_mode", expand=True)