Rikhabh Jain
BME5400
1.4
rj334
Homework 1
Exact Answer:
f ( x )= x 2+1 x2 where x=300
f ( x )= 3002 +1 3002
f ( x )= 90001 90000
f ( x )=300.00166666203706300
f ( x )=0.00166666203706
Six-Digit Arithmetic:
f ( x )= x 2+1 x2 where x=300
f ( x )= 3002 +1 30
Rikhabh Jain
BME5400
2.1
5
rj334
Homework 2
MATLAB Code:
%Linear relationship: y = b0 + (b1 * x), where "y" is the winning times
and
%"x" is the year, The normal equations are derived by minimizing the
Sum of
%the Squared Residuals.
%Load data from file w
function bisectionmethod(func,ab, tolx, tolfx)
% tolx : tolerance for error in estimating root
% tolfx: tolerance for error in function value at solution
maxloops = 50; % maximum number of iterations allowed
% Root-containing interval [a b]
a = ab(1);
b =
function bisectionmethod(func,ab, tolx, tolfx)
% tolx : tolerance for error in estimating root
% tolfx: tolerance for error in function value at solution
maxloops = 50; % maximum number of iterations allowed
% Root-containing interval [a b]
a = ab(1);
b =
Firstname Lastname
1/30/15
BME 5400
HW 1
f ( x )=x 3 +5 x2 2 x +1=0
g ( x ) =( ( x+5 ) x2 ) x +1=0
1. Using 4-digit rounding arithmetic, f(1.17) yields 7.107, while g(1.17) yields
7.106. Thus, g(x) was more accurate. This is due to the fact that f(x) had