# Looking for a

1. Oct 28, 2005

### dimensionless

Is the an equation that can satify the following equation with out using any if statements?
$$x(t) = \left\{ \begin{array}{cc} 1,&\mbox{ if }t = 0\\ 0, & \mbox{ if }{ t }{ does }{ not = 0 } \end{array}$$

Last edited: Oct 28, 2005
2. Oct 28, 2005

### masudr

The Dirac delta function is defined as a limit of functions, and so is not truly a function, but it does satisfy the rules you have imposed above.

3. Oct 28, 2005

### Moo Of Doom

$$x(t)=\left\lfloor{\frac{1}{t^2+1}}\right\rfloor$$
$$x(t)=1-|sgn(t)|$$