0% found this document useful (0 votes)
47 views3 pages

Fall 2014, University of Houston Instructor: Dr. K. B. Nakshatrala

This document contains the homework assignment for a computational mechanics course. It includes 7 problems covering various mathematical and computational mechanics topics. Students are asked to work on problems involving matrix algebra, partial differential equations, vector calculus, and algorithms for sorting arrays and multiplying matrices. Code implementations for the sorting and matrix multiplication algorithms are required. The homework is due on September 18, 2014.

Uploaded by

satya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views3 pages

Fall 2014, University of Houston Instructor: Dr. K. B. Nakshatrala

This document contains the homework assignment for a computational mechanics course. It includes 7 problems covering various mathematical and computational mechanics topics. Students are asked to work on problems involving matrix algebra, partial differential equations, vector calculus, and algorithms for sorting arrays and multiplying matrices. Code implementations for the sorting and matrix multiplication algorithms are required. The homework is due on September 18, 2014.

Uploaded by

satya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

CIVE 7397: COMPUTATIONAL MECHANICS

FALL 2014, UNIVERSITY OF HOUSTON


INSTRUCTOR: DR. K. B. NAKSHATRALA

Homework #1, Due date: 09/18/2014 (Thursday)


Mathematical preliminaries
Problem #1 (20 points) Testing your prerequisites
(i) Can a real (square) matrix have complex eigenvalues. If so, provide an example.
(ii) If the determinant of a matrix is positive, can we conclude that the matrix is positive
definite. If not provide a simple counterexample.
(iii) Find hessian for the function f (x, y) = x2 + 2xy + y 2 . For this case, is the hessian
positive definite, positive semidefinite or indefinite?
(iv) Provide a simple example of a matrix that is not diagonalizable.
(v) Is every invertible matrix diagonalizable?
(vi) Is every diagonalizable matrix invertible?
(vii) If A is an invertible matrix, show that AT A is a positive definite matrix.
(viii) Let A be a given matrix of size m n and b be a given vector of size m 1. Under
what (necessary and sufficient) condition one can find a vector x of size n 1 such that
Ax = b. Under what (necessary and sufficient) condition the solution will be unique.
(ix) Show the determinant of an orthogonal matrix is 1.
(x) Show that product of two orthogonal matrices is also orthogonal.
Problem #2 (10 points) Consider the scalar field g(x) = (x x)2 . Compute div [ (div[g(x)])].
Problem #3 (10 points) Using the divergence theorem prove Greens first and second
identities:
Z

(u v + u v) d = n (uv) d
Z
Z
(u2 v v2 u) d = n (uv vu) d

where u(x) and v(x) are scalar functions, and n is unit outward normal to boundary .
Problem #4 (10 points) Classify the following PDEs into linear or nonlinear. Also
indicate the order of the PDE.
1

(a) utt uxxxx = 0

(Beam equation from structural dynamics)

(b) ut + cuux + uxxx = 0 (KdV equation from fluid mechanics)


(c) u2x + u2y = c2

(eikonal equation from optics)

(d) u = 0

(Bi-harmonic equation from elasticity)

(e) iut + u = 0
(Schrodinger equation from Physics)
Problem #5 (10 points) For any sets A, B, and C, prove (not through Venn diagrams)
(i) A (B C) = (A B) (A C)
(ii) C (A B) = (C A) (C B)
Problem #6 (20 points) Given an array of n real numbers, implement an algorithm to
sort these numbers in ascending order. (You can use your favorite computer language.)
Denote the array of numbers by A. You need to check your implementation by sorting the
following array of numbers:
A = [99, 83, 22, 83, 22, 1, 3, 99, 1, 0]
Remark: You need to provide the complete algorithm. Answers like use Excel or built-in
commands like sort() are not acceptable. The format of the function should be as follows:

function [A] = mysort(A)

%**********************************************************;

10

You should not use another temporary array.

11

You may use temporary variable.

12

13

14

15

16

%**********************************************************;

NAME

mysort.m

INPUT

A: an array of (unsorted) real numbers


OUTPUT

;
;

A: sorted array

COMMENT

WRITTEN BY

YOUR NAME/S

LAST MODIFICATION

Date (mm/dd/yyyy)

Problem #7 (20 points) Write a program for matrix multiplication. The input is two
matrices and the output need to be the product of the matrices. You need to have a check
on compatibility for matrix multiplication. The format of the function should be as follows:

function [C] = my matrix mult(A,B)

%**********************************************************;

10

You need to check for compability of matrices

11

for multiplication

12

13

14

15

16

%**********************************************************;

NAME

my matrix mult.m

INPUT

A,B: Two matrices (provided by the user)


OUTPUT

;
;

C = A * B

COMMENT

WRITTEN BY

YOUR NAME/S

LAST MODIFICATION

Date (mm/dd/yyyy)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy