]> gitweb.michael.orlitzky.com - octave.git/blobdiff - legendre_p_tilde.m
Add the c_norm function and l2_project functions.
[octave.git] / legendre_p_tilde.m
index e5e6f63b39b929731c3c8281f59b4510fbbf494c..0b3a87ba698dc41c560cc0b38c52b4549a8348e8 100644 (file)
@@ -18,7 +18,7 @@ function P_tilde = legendre_p_tilde(n, a, b)
     P = NA;
   else
     ## Compute the Legendre polynomial over [-1,1] and mangle it.
-    P = legendre_p(n)
-    P_tilde = @(x) P( (2/(b-a))*x + 1 - (2*b)/(b-a) )
+    P = legendre_p(n);
+    P_tilde = @(x) P( (2/(b-a)).*x + 1 - (2*b)/(b-a) );
   end
 end