how do I bring back the initial menu to configure a mesh?
The math function menu like all object initialization menus can only be used when you create an object, if you go to edit mode or use any operation in the 3D view port, it will disappear.