Math to Mesh (MTM) allows you to create a mesh out of a function. The input variables of functions can be x or y, or both. (One dimensional or two dimensional)
Functions like sin and cos are supported. Spherical Harmonics can also be generated with the add-on. Functions can be animated.