NAME:
PAGE 1
Problem 1 (5p)
Secant Method
Complete the algorithm implementing the secant method below, for finding the root of function f(x). Note: replace "." with the appropriate expression. maxiter=100; % Maximum number of iterations xeps=5*eps; % Smal
NAME:
PAGE 1
Problem 1 (5p)
Least squares line interpolation
Given a set of points (xi , yi ), nd the coecients , and , such that the line y = x + will approximate the given set of points in a least squares sense. Solution See slides Equations.(1)-(2), pa
MAE 316
Analysis of Engineering Systems
Fall 2013
TR, ESB G39
Instructor: David S. Mebane, ESB 333; [email protected]
Office Hours: TR 10:45-12 (directly after class) or by appointment
TAs: TBA
Course Website: eCampus
Objectives
The course is an introd
%
%
%
%
%
MAE 316
Spring 2015
Mini-projet 2
Function
Mohammed Gorashi
function[u1,u2,v1,v2] = Gorashi_Mohammed_mp2_Shock1(M,C,D)
A=[1,0;-1,1];
K = A'*C*A;
del = 0.1;
% elongation matrix
% K matrix
% Time change Constant
GT1 = zeros(4);
% Assigning GT1 mat
%
%
%
%
%
%
MAE-316
Spring 2015
Mini-Project#1
Due on Feb/10/2015
Mohammed Gorashi
The function of flux of heat in a metal bar
function [u,x] = Gorashi_Mohammed_mp1_heatingbar(n,kappa)% identifying the input
and the output of the function.
dx=1/n; % setti
%
%
%
%
%
%
MAE-316
Spring 2015
Mini-Project#1
Due on Feb/10/2015
Mohammed Gorashi
The Script of flux of heat in a metal bar
symb = ['-b'; 'r-'; '-g'];
i = 1;
kappa = [0.1];
for n = [16 32 64];
end
[u,x] = Gorashi_Mohammed_mp1_heatingbar(n,kappa);
figure
%
%
%
%
%
MAE 316
Spring 2015
Mini-projet 2
Scrip File
Mohammed Gorashi
%User input for dampening coefficients
Damp1=input('input the first damping coefficent set 1: ');
Damp2=input('input the second damping coefficent set 1: ');
D=[Damp1,0;0,Damp2];
C=[2