AMERICAN UNIVERSITY OF BEIRUT
Mathematics Department-FAS
MATH 251
TEST 2
SPRING 2008-2009
Closed Book, 75 mn
STUDENT NAME
ID NUMBER
Problem Grade
1
/15
2
/10
3
/ 14
4
/11
TOTAL
50
1
1. Let A be the following invertible 3 3 matrix.
2 1 7
4 0 7
2 3
3
(a)
Solutions of Homework 6: CS321, Fall 2010
Please show all steps in your work. Please be reminded that you should do your homework
independently.
1. (10 points) Let S0 (x) = c0 x + d0 be the linear polynomial dened on [t0 , t1 ], and
S2 (x) = c2 x + d2 the
Matlab Assignment 1
Due Date: May 30,2010
Important Instructions
Students are allowed to work in groups of 2 ONLY.
ONLY ONE student from each group should submit the assignment.
Assignments should be uploaded on Moodle.
The name of the zipped folder t
Matlab Assignment 2
Due Date: FRIDAY April 30,2010
Important Instructions
Students are allowed to work in groups of 2 ONLY.
ONLY ONE student from each group should submit the assignment.
Assignments should be uploaded on Moodle.
The name of the zipped
Matlab Assignment 1
Due Date: SUNDAY MARCH 21,2010
Important Instructions
Students are allowed to work in groups of 2 ONLY.
ONLY ONE student from each group should submit the assignment.
Assignments should be uploaded on Moodle.
The name of the zipped
Matlab Assignment 1
Due Date: March 11, 2013
Important Instructions
Students are allowed to work in groups of 2 ONLY.
ONLY ONE student from each group should submit the assignment.
Assignments should be uploaded on Moodle.
The name of the zipped folde
Homework Assignment #3
3-1 Use appropriate Lagrange interpolating polynomials of degrees one, two and three to approximate
f (0.25):
f (0.1) = 0.62049958, f (0.2) = 0.28398668, f (0.3) = 0.00660095, f (0.4) = 0.24842440.
3-2 Use Nevilles method to approxi
AMERICAN UNIVERSITY OF BEIRUT
Faculty of Arts and Sciences
Mathematics Department
MATH 251
FINAL EXAM
FALL 2007-2008
Closed Book, 2 HOURS
WRITE YOUR ANSWERS ON THE QUESTION SHEET
STUDENT NAME
ID NUMBER
Problem
1
Out of
30
2
15
3
15
4
40
TOTAL
100
1
Grade
Matlab Assignment 1
Due Date: October 29, 2012
Important Instructions
Students are allowed to work in groups of 2 ONLY.
ONLY ONE student from each group should submit the assignment.
Assignments should be uploaded on Moodle.
The name of the zipped fol
AMERICAN UNIVERSITY OF BEIRUT
Mathematics Department-FAS
MATH 251
TEST 1
FALL 2009-2010
Closed Book, 75 mn
STUDENT NAME
ID NUMBER
Problem
1
Out of
13
2
14
3
11
4
12
TOTAL
50
1
Grade
1. Determine the decimal number x in F (10, 5, 60, +60), that has the fol
AMERICAN UNIVERSITY OF BEIRUT
Mathematics Department-FAS
MATH 251
TEST 1
SPRING 2009-2010
Closed Book, 75 mn
STUDENT NAME
ID NUMBER
Problem
1
Out of
14
2
14
3
10
4
12
TOTAL
50
1
Grade
1. Determine the Hexadecimal representation of the decimal real number
AMERICAN UNIVERSITY OF BEIRUT
Mathematics DepartmentPAS _
%
MATH 251
' TEST 1 _
FALL 20092010
Closed Book, 75 mn
STUDENT NAME
ID NUMBER /
1. Determine the decimal number a: in F(10, 5, -60, +60), that has the fol-
lowing hexadecimal representation in the
AMERICAN UNIVERSITY OF BEIRUT
Mathematics Department-FAS
MATH 251
TEST 1
FALL 2010-2011
Closed Book, 75 mn
STUDENT NAME
ID NUMBER
Problem
1
Out of
13
2
12
3
13
4
12
TOTAL
50
1
Grade
1. (13 points) Determine the Hexadecimal representation of the decimal
nu
American University of Beirut Department of Mechanical Engineering
Midterm: MECH 432 Dynamic System Analysis / Summer 2011-2012
Closed book
Scientific calculators are allowed
Return the entire question booklet and other scratch sheets to the instructor
Sh
Summer 2014
MATLAB ASSIGNMENT 1
Version 1 Section 1: 8:45 to 9:45 a.m.
Chapter 1
1. Write a MATLAB
function[Ibase10, Fbase10, d]=Convert2to10(Ibase2, Fbase2)
which takes as inputs the 2 vectors Ibase2 and Fbase2 representing
respectively the integral and
FALL 2015
SOLUTION ASSIGNMENT 3
function[d1,u1,l1,c1,r1]=NaiveGaussArrow(d,u,l,c,r)
n=length(d);
% for all reductions except last
for k=1:n-2
l(k)=l(k)/d(k); %mult
r(k)=r(k)/d(k); %mult
d(k+1)=d(k+1)-l(k)*u(k);
c(k+1)=c(k+1)-l(k)*c(k);
r(k+1)=r(k+1)-r(k)*
Fall 2015
ASSIGNMENT 3: MATLAB Exercises on Chapter 3
Chapter 3
1. An arrow matrix A is a special kind of square matrix, in which there is a
non zero tridiagonal band, with a non zero column on the left side and a
non zero row at the bottom. For example,
Fall 2015
RECITATION ALGORITHMS
CHAPTER 3
function x=ForwardSub(L,c)
n=length(c);
x=zeros(n,1);
for j=1:n
x(j)=c(j)/L(j,j);
for i=j+1:n
c(i)=c(i)-L(i,j)*x(j);
end
end
end
function [U,c]= NaiveGauss(A,b)
[n m]=size(A);%or n=length(A);
for k=1:n-1
piv=A(k,k
AMERICAN UNIVERSITY OF BEIRUT
Mathematics Department-FAS
MATH 251
QUIZ 2
Spring 2013-2014
Closed Book, 1hr:30mn
STUDENT NAME
ID NUMBER
Name of Instructor
Problem
1
Out of
15
2
15
3
15
4
15
TOTAL
60
1
Grade
1. (15 points) Consider the following 3 3 inverti
Ch3 Algorithms
function [U,L] = NaiveGauss(A)
%Input:A: invertible matrix of size n
%Output: U:upper triangular, L:unit lower
triangular
%Column version
n=size(A);
for k=1:n-1
Piv=A(k,k);
for i=k+1:n
A(i,k)=A(i,k)/Piv;
end
for j=k+1:n
for i=k+1:n
A(i,j)=A