Added questions
authorNishanth <nishanth@fossee.in>
Wed, 06 Oct 2010 16:15:42 +0530
changeset 221 7cd975ff5f0d
parent 220 01bb60f51398
child 222 d5249a528cae
Added questions
lstsq.rst
--- a/lstsq.rst	Wed Oct 06 15:40:46 2010 +0530
+++ b/lstsq.rst	Wed Oct 06 16:15:42 2010 +0530
@@ -109,7 +109,6 @@
 This brings us to the end of the tutorial.
 we have learnt
 
- * how to use loadtxt to read files
  * how to generate a least square fit
 
 {{{ Show the "sponsored by FOSSEE" slide }}}
@@ -119,4 +118,22 @@
 
 Hope you have enjoyed and found it useful.
 Thank you
- 
+
+Questions
+=========
+
+ 1. What does ones_like([1, 2, 3]) produce
+
+   a. array([1, 1, 1])
+   #. [1, 1, 1]
+   #. [1.0, 1.0, 1.0]
+   #. Error
+   
+ 2. What does ones_like([1.2, 3, 4, 5]) produce
+
+   a. [1.2, 3, 4, 5]
+   #. array([1.0, 1.0, 1.0, 1.0])
+   #. array([1, 1, 1, 1])
+   #. array([1.2, 3, 4, 5])
+
+ 3. What is the shape of the