lstsq.rst
changeset 221 7cd975ff5f0d
parent 195 e8a251048213
equal deleted inserted replaced
220:01bb60f51398 221:7cd975ff5f0d
   107 {{{ Show summary slide }}}
   107 {{{ Show summary slide }}}
   108 
   108 
   109 This brings us to the end of the tutorial.
   109 This brings us to the end of the tutorial.
   110 we have learnt
   110 we have learnt
   111 
   111 
   112  * how to use loadtxt to read files
       
   113  * how to generate a least square fit
   112  * how to generate a least square fit
   114 
   113 
   115 {{{ Show the "sponsored by FOSSEE" slide }}}
   114 {{{ Show the "sponsored by FOSSEE" slide }}}
   116 
   115 
   117 #[Nishanth]: Will add this line after all of us fix on one.
   116 #[Nishanth]: Will add this line after all of us fix on one.
   118 This tutorial was created as a part of FOSSEE project, NME ICT, MHRD India
   117 This tutorial was created as a part of FOSSEE project, NME ICT, MHRD India
   119 
   118 
   120 Hope you have enjoyed and found it useful.
   119 Hope you have enjoyed and found it useful.
   121 Thank you
   120 Thank you
   122  
   121 
       
   122 Questions
       
   123 =========
       
   124 
       
   125  1. What does ones_like([1, 2, 3]) produce
       
   126 
       
   127    a. array([1, 1, 1])
       
   128    #. [1, 1, 1]
       
   129    #. [1.0, 1.0, 1.0]
       
   130    #. Error
       
   131    
       
   132  2. What does ones_like([1.2, 3, 4, 5]) produce
       
   133 
       
   134    a. [1.2, 3, 4, 5]
       
   135    #. array([1.0, 1.0, 1.0, 1.0])
       
   136    #. array([1, 1, 1, 1])
       
   137    #. array([1.2, 3, 4, 5])
       
   138 
       
   139  3. What is the shape of the