This question came up in my interview for a job application(you won't believe it but it was a C# programmer job application).
Let's say we have a open set $(0,1)$.
Can we say that there is a maximum value between $(0,1)$ or it is considered as undefined?
I answered that there is and it is
$$ 1 - \frac{1}{10^\infty} $$
But they said there isn't any max value. I still think my answer is correct.
Edit:
In some answers, it is basically said that:
$$ \frac{1}{10^\infty} > \frac{1}{2\cdot10^\infty} $$
Is this equation valid since there are infinite values in each side? I thought $$ 2\cdot\infty = \infty $$ and $$ \frac{\infty}{2} = \infty $$ So it doesn't matter how much you multiply or divide infinity, it is still infinity?
Sorry if the question is silly but I am a computer programmer, not mathematician.
1-FLT_EPSILON/2
in thefloat
data type). – TonyK Jan 22 '15 at 10:41FLT_EPSILON
by2
? – Paul Manta Jan 22 '15 at 21:471+FLT_EPSILON
is the smallestfloat
that is greater than $1$; therefore the largestfloat
that is less than $1$ is1-FLT_EPSILON/2
. – TonyK Jan 22 '15 at 22:14