Thursday, October 8, 2015

HW #9

Problem #1: Composition of Air

The percent compositions and molecular weight of certain elements in air were given in a table. We were instructed to create a matrix of the data and use the dot() function to find the molecular weight of air.


Output for the program:




Problem #2: Bomb Calorimeter

The masses and heat capacities for 4 different materials were given in a table consisting of four calorimeter experiments. We were told to calculate the total heat capacity for the calorimeter in each experiment using matrix multiplication.





Problem #3: Determinant

In this problem, we were given three sets of matrices and instructed to determine whether or not each matrix is invertable. This is done by taking the determinant of each matrix. If the determinant is 0, the matrix is invertable; otherwise, there is no inverse for that matrix.


Output and results for the program are shown below.



Problem #4: Cross Product

In this problem, we were instructed to calculate the moment at two different points on a shelf with a mass hanging off of the corner. This was accomplished by setting up matrices for the direction and force vectors and taking a cross product.


Output for the program


No comments:

Post a Comment