Curve fitting a sinusoidal function

126 Views Asked by At

I need to fit the function $y = a\sin(\pi x)$ to these points: $[0,0], [0.5,a], [1,0]$ and another given point $p_0$. Please guide me through tackling this problem, because I don't know what to do.

Thanks!