Replaced random array with linspace in day1/session3. scipyin2010
authorPuneeth Chaganti <punchagan@fossee.in>
Thu, 09 Dec 2010 22:48:38 +0530
branchscipyin2010
changeset 446 b9d07ebd783b
parent 445 956b486ffe6f
child 447 df747c8d70e0
Replaced random array with linspace in day1/session3.
day1/session3.tex
--- a/day1/session3.tex	Thu Dec 09 22:37:22 2010 +0530
+++ b/day1/session3.tex	Thu Dec 09 22:48:38 2010 +0530
@@ -137,8 +137,8 @@
 \begin{frame}[fragile]
   \frametitle{Speed}
     \begin{lstlisting}
-In []: a = random(1000000) 
-# array with a million random elements
+In []: a = linspace(0, 100*pi, 1000000) 
+# array with a million elements
 In []: b = []
 In []: for each in a:
   ...:     b.append(sin(each))