3d graph equations