X-Git-Url: http://gitweb.michael.orlitzky.com/?p=octave.git;a=blobdiff_plain;f=legendre_p_tilde.m;h=0b3a87ba698dc41c560cc0b38c52b4549a8348e8;hp=e5e6f63b39b929731c3c8281f59b4510fbbf494c;hb=79707c807c6f44eb95ec0eeeaa28f7e98bf8c319;hpb=ee06b882dfb9a86788d7057cec8ca6d7680c5ca5 diff --git a/legendre_p_tilde.m b/legendre_p_tilde.m index e5e6f63..0b3a87b 100644 --- a/legendre_p_tilde.m +++ b/legendre_p_tilde.m @@ -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