How can i create a function where f(x) = 1 if 0<x<1 otherwise f(x) = 0?
Sounds to me like you just did
[math]
f(x) = \left\{\begin{matrix}
1, \: x\in (0,1) \\
0, \: x\notin (0,1) &
\end{matrix}\right.
[/math]
[eqn]\begin{array}{cccl} f: & \mathbf R & \longrightarrow & \mathbf R \\ & x & \longmapsto & \begin{cases} 1 \quad \text{if } 0 \,<\, x \,<\, 1 \\ 0 \quad \text{otherwise} \end{cases} \end{array}[/eqn]
>>8471081
>>8471081
f(x)=u(x)-u(x-1) where u(x) is the Heaviside Step Function.
https://en.wikipedia.org/wiki/Heaviside_step_function
Found it. What I was looking for was Ceiling[4x - 4x^2]
>>8471158
This
[math] \chi_{(0,1)} [/math]
>>8471081
There's a unique function (from reals to reals) that has the properties you've specified OP, so you're already done
>>8471084
actual lol
>>8471081
Indicator function on [math] (0,1) [/math]