Google for "MayaVi" It's overkill for what you've described (it doesn't even make 2D graphs afaik), but it could draw your function as a 3D surface. And besides, it's way cool.