Vector Space C[-Pi, Pi]

The vector space C[-Pi,Pi] of continuous functions on the interval -Pi to Pi can be made into an inner product space by giving it the following inner product :


  
  innerproduct[f_,g_,x_]:=Integrate[f g ,{x,-Pi,Pi}]
  

The norm from this inner product is therefore :


  
  norm[f_]:=Sqrt[innerproduct[f,f,x]]
  

Up to Fourier Series