Warning
This page is located in archive. Go to the latest version of this course pages.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
courses:be5b33prg:homeworks:vectorlib [2015/10/27 18:47]
svobodat
courses:be5b33prg:homeworks:vectorlib [2016/11/04 16:03]
xposik
Line 1: Line 1:
 ====== vectorlib - functions for working with vectors ====== ====== vectorlib - functions for working with vectors ======
 +
 +<WRAP important round>
 +See the general [[courses:​be5b33prg:​tutorials:​homeworks|homework guidelines]]!
 +</​WRAP>​
 +
  
 Create ''​vectorlib.py''​ file-library that will contain the functions listed below. Your library is going to be imported, it must work as as a library (pure functions). Concentrate your test suite into a ''​main.py''​ file. Zip ''​vectorlib.py''​ and ''​main.py''​ into one archive file and upload it, i.e. both the library and the test suite is expected. Quality and thorougness of you testing will be evaluated. ​ Create ''​vectorlib.py''​ file-library that will contain the functions listed below. Your library is going to be imported, it must work as as a library (pure functions). Concentrate your test suite into a ''​main.py''​ file. Zip ''​vectorlib.py''​ and ''​main.py''​ into one archive file and upload it, i.e. both the library and the test suite is expected. Quality and thorougness of you testing will be evaluated. ​
Line 5: Line 10:
 Vectors will be lists. You can define some auxiliary function in your library. Also think about re-using functions within other functions. If you have problems with the math backround ask your teachers or a book or wikipedia or any other math resource. Vectors will be lists. You can define some auxiliary function in your library. Also think about re-using functions within other functions. If you have problems with the math backround ask your teachers or a book or wikipedia or any other math resource.
  
-Three points for the code functionality (automatic check) and two points for the code quality (readability,​ conciseness).+Five points for the code functionality (automatic check) and two points for the code quality (readability,​ conciseness).
  
 <code python> <code python>
Line 23: Line 28:
     :return:     :return:
     None if u and v are not compatible     None if u and v are not compatible
-    a list of the same size as u and v+    ​otherwise ​number (float or int)
     """​     """​
  
courses/be5b33prg/homeworks/vectorlib.txt · Last modified: 2017/11/15 15:02 by petrito1