1

I am looking for a continuous function $f:\mathbb R^n \to \mathbb R$ such that $f(x_1, x_2, \ldots , x_n) > 0$ if and only if $x_i > 0 \ \forall i = 1,2, \ldots , n$. Can anyone suggest a good one?

Daron
  • 10,300

2 Answers2

5

$f(x)=\displaystyle \min_i x_i$ is simple and continuous.

It is essentially the same as pseudoDust's answer, with $\lt$ changed to $\le$.

Henry
  • 157,058
2

It's not a nice one, but:

$f(x)=\left\{\begin{matrix} x_0 \; \; \; \; \; \; x_0<x_1,x_2,...,x_n\\ x_1 \; \; \; \; \; \; x_1<x_0,x_2,...,x_n\\ ...\\ x_n \; \; \; \; \; \; x_n<x_0,x_1,...,x_{n-1} \end{matrix}\right.$