# Math Help - heaviside function

1. ## heaviside function

does anyone can tell me if the fuction for this graphic it is ok?

i have this

f(t)=
4sin(t) for 0 ... 2
0 for all tohe value

is that ok?

thanks

2. Close, but if it was $4 \sin t$, then the period would be $2\pi$ so the half period (which is what is shown) should be $\pi$ wide, but in the graph it extends from 0 to 2. To fix it we can scale the function by a factor of $\frac{2}{\pi}$. To do so requires replacing $t$ with $\frac{\pi}{2} \, t$, giving:

$f(t) = \begin{cases} 4 \sin \left( \frac{\pi t}{2} \right) , & \mbox{if } 0 \le t \le 2 \\ 0, & \mbox{elsewhere} \end{cases}$

3. thanks I got it but now I cant calculate the approximate mean square error, does anyone can help me, I know I´m doing something worng because the valeu I got is -16 as should be 0,xx because it is a percentage.

cheers