[Scipy-svn] r2221 - trunk/Lib/special

scipy-svn at scipy.org scipy-svn at scipy.org
Sat Sep 23 23:41:40 CDT 2006


Author: rkern
Date: 2006-09-23 23:41:36 -0500 (Sat, 23 Sep 2006)
New Revision: 2221

Modified:
   trunk/Lib/special/basic.py
Log:
Fix #229

Modified: trunk/Lib/special/basic.py
===================================================================
--- trunk/Lib/special/basic.py	2006-09-23 22:50:16 UTC (rev 2220)
+++ trunk/Lib/special/basic.py	2006-09-24 04:41:36 UTC (rev 2221)
@@ -329,13 +329,13 @@
     return jn[:(n+1)],jnp[:(n+1)]
 
 def _sph_harmonic(m,n,theta,phi):
-    """inputs of (m,n,theta,phi) returns spherical harmonic of order
-    m,n (|m|<=n) and argument theta and phi:  Y^m_n(theta,phi)
+    """Spherical harmonic of order m,n (|m|<=n) and argument theta and phi:
+    Y^m_n(theta,phi)
     """
     x = cos(phi)
     m,n = int(m), int(n)
     Pmn,Pmnd = lpmn(m,n,x)
-    val = Pmn[m,n]
+    val = Pmn[-1, -1]
     val *= sqrt((2*n+1)/4.0/pi)
     val *= exp(0.5*(gammaln(n-m+1)-gammaln(n+m+1)))
     val *= exp(1j*m*theta)



More information about the Scipy-svn mailing list