Fall 2014, University of Houston Instructor: Dr. K. B. Nakshatrala
Fall 2014, University of Houston Instructor: Dr. K. B. Nakshatrala
(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
(d) u = 0
(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:
%**********************************************************;
10
11
12
13
14
15
16
%**********************************************************;
NAME
mysort.m
INPUT
;
;
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:
%**********************************************************;
10
11
for multiplication
12
13
14
15
16
%**********************************************************;
NAME
my matrix mult.m
INPUT
;
;
C = A * B
COMMENT
WRITTEN BY
YOUR NAME/S
LAST MODIFICATION
Date (mm/dd/yyyy)