CompSciHW5

From Predictive Chemistry
Revision as of 13:55, 19 February 2016 by David M. Rogers (talk | contribs) (Created page with "Homework 6 - Due Friday, March 4, 2016 <pre> 1) Create a function that parses the following files: a) mat33 = """ 1.0 2.0 3.0 -2.0 0.0 1.0 1.0 1.1 1.2 """ b) csv = """ # ti...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Homework 6 - Due Friday, March 4, 2016

1) Create a function that parses the following files:
 a) mat33 = """
1.0 2.0 3.0
-2.0 0.0 1.0
1.0 1.1 1.2
"""

 b) csv = """
# time temperature sea_level
0.0, 300.0, 44.5
1.5, 299.5, 44.0
3.0, 299.8, 44.2
4.5, 301.0, 43.9
"""

 c) name_val = """
seed = 1553
name = "test name"
trials = 10
tolerance = 1e-8
"""

 d) group_data = """
[Group 1]
1 2 3 4 5 6

[Group 2]
4 5 11 14 1

[Group 3]
7 8 9 10 11
"""

2) Write code to carry out matrix multiplication manually
   and test it against the result of numpy.dot.

3) Write code to multiply every column of matrix, A,
   with every other column.  Use this to find the set of angles
   between the column vectors.