I am having hard time defining a smooth function $f:\Bbb R^3 \to \Bbb R$ such that :
$f(x,y,z) = 0$ if and only if $(x,y,z)$ belongs to the unit cube $[0,1]^3$.
I tried generalizing the case of $f:\Bbb R\to \Bbb R$, such that $f$ vanishes only on $[0,1]$ but failed in the process.
I would really appreciate any help, Thanks in advance!