[Numpy-svn] r8654 - branches/1.5.x/numpy/polynomial

numpy-svn@scip... numpy-svn@scip...
Tue Aug 17 20:26:02 CDT 2010


Author: charris
Date: 2010-08-17 20:26:02 -0500 (Tue, 17 Aug 2010)
New Revision: 8654

Modified:
   branches/1.5.x/numpy/polynomial/polytemplate.py
Log:
BCK: Backport r8653 from trunk.


Modified: branches/1.5.x/numpy/polynomial/polytemplate.py
===================================================================
--- branches/1.5.x/numpy/polynomial/polytemplate.py	2010-08-17 18:22:25 UTC (rev 8653)
+++ branches/1.5.x/numpy/polynomial/polytemplate.py	2010-08-18 01:26:02 UTC (rev 8654)
@@ -545,7 +545,7 @@
         roots = ${nick}roots(self.coef)
         return pu.mapdomain(roots, $domain, self.domain)
 
-    def linspace(self, n):
+    def linspace(self, n=100):
         """Return x,y values at equally spaced points in domain.
 
         Returns x, y values at `n` equally spaced points across domain.
@@ -554,8 +554,8 @@
 
         Paramters
         ---------
-        n : int
-            Number of point pairs to return.
+        n : int, optional
+            Number of point pairs to return. The default value is 100.
 
         Returns
         -------



More information about the Numpy-svn mailing list