f(x,y,z):=x^2+y^2*z-z^2=0;

g(x,y,z):=x^2+y^2*z^3-z^4=0;