Hy! I was trying to use Unity to make a Physic simulation. Is it possible to convert a mathematical function f(x,y,z) to a 3d surface? for example -0.5(x^2+y^2+z^2)-((1-0.5)/sqrt(0.5 +x^2+y^2+z^2))=1

It is not a problem to make a surface at all, you just need to find a solution on your own about how you can turn the formula into a mesh. There is no built-in way for that.