ME581_Assignment01

# ME581_Assignment01 - ME 581 Assignment#1 In the following...

This preview shows pages 1–2. Sign up to view the full content.

ME 581 Assignment #1 In the following questions show the derivations that you used to write your program. 1. Write a subroutine to do matrix multiplication [ C ] = [ A ] [ B ] of arbitrary sized matrices. The input to the program should be: The first matrix [ A ], the number of rows of [ A ] and the number of columns of [ A ]. The second matrix [ B ], the number of columns of [ B ] (The number of rows of [ B ] is equal to the number of columns of [ A ]). The output of the subroutine is matrix [ C ]. Test your program using the following matrices: = 1 1 4 2 4 1 0 1 2 3 5 9 1 0 2 2 1 0 3 2 ] [ A = 4 1 1 3 4 3 2 1 0 4 1 0 2 1 2 ] [ B 2. Write a subroutine to do the multiplication C j = A ijk B ik of arbitrary sized multi-dimensional matrices. The input to the program should be: a. The multidimensional matrix [ A ], the maximum value of the indices of

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 10/16/2011 for the course MECHANICAL 581 taught by Professor Wasfy during the Fall '11 term at IUPUI.

### Page1 / 2

ME581_Assignment01 - ME 581 Assignment#1 In the following...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online