Making Meshes or BSP with 3d Graphing Equations?

Is there a way that I can create a mesh or BSP with a 3D line equation like y=sin(20x)+cos(20z)?