summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNishanth Amuluru2010-10-06 16:15:42 +0530
committerNishanth Amuluru2010-10-06 16:15:42 +0530
commit296bf99770ef42225d29318ca618ebe3a3439003 (patch)
treeebb82262a95888085b496722b66492b4cda0428c
parent69333df8d673622ce28fd5fa15b477072dcd1543 (diff)
downloadst-scripts-296bf99770ef42225d29318ca618ebe3a3439003.tar.gz
st-scripts-296bf99770ef42225d29318ca618ebe3a3439003.tar.bz2
st-scripts-296bf99770ef42225d29318ca618ebe3a3439003.zip
Added questions
-rw-r--r--lstsq.rst21
1 files changed, 19 insertions, 2 deletions
diff --git a/lstsq.rst b/lstsq.rst
index 5b375d3..7af7701 100644
--- a/lstsq.rst
+++ b/lstsq.rst
@@ -109,7 +109,6 @@ We get the least square fit of l vs t^2
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 @@ This tutorial was created as a part of FOSSEE project, NME ICT, MHRD India
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