MATH 105LA LAB 10 (44640)
Final Project (Due Date: Dec. 6, 2011)
Please choose 2 of the following 3 topics.
Reporting requirements: I will not run any submitted MATLAB codes.
Prepare a word le named UCID report.doc showing the requested information, which
%Develop a matlab code to implement the fixed point algorithm and
implement Newtons method for sqrt 2.
%P0 IS APPROXIMATION INITIAL POINT.
%TOL is Tolerance.
%M IS THE MAXIMUN NUMBER OF ITERATION.
%E1 is the error for fixed point and E2 is the error for N
Math 105A Lab Report Lab 1
Yushang Lai ID:77192761
Purpose/Objective: In this project, I will capitalize on the already-learned knowledge of the
Bisection Method which based on Intermedia Value Theorem to write binary search algorithm
for locating. Beside
% Using bisection method to find zero of the function
% f(x) = 6*(exp(x)-x)-7-3*x^2-2*x^3
% on the interface [a,b], with a = -1, b = 1
% Initial : sgn(f(a)>0, sgn(f(b)<0
clear all;
clc;
Nmax = 300;
Tol = 1e-6;
% STEP 1 : Setting initialize variables
p = z
MATH 105LA LAB 10 (44640)
Homework 5 (Due Date: Nov. 29, 2011)
In this assignment, you are required to write a matlab function for the
Preconditioned Conjugate Gradient Method and then write a script le to
nd root for a linear system by using the nished m
MATH 105LA LAB 10 (44640)
Homework 4 (Due Date: Nov. 11, 2011)
In this assignment, you are required to write a matlab function for LU
factorization according to algorithm 6.4 in the textbook and then write a
script le to nd L and U matrix using the nished
MATH 105LA LAB 10 (44640)
Homework 1 (Due Date: Oct. 6, 2011)
In Matlab open a new m-le. In that m-le type the answers to the
following questions.
1. (a) Create a 4 1 vector named with a one in every entry.
(b) Make into a 1 4 vector using a single comman
MATH 105LA LAB 10 (44640)
Homework 2 (Due Date: Oct. 13, 2011)
In matlab, use .m-les to nish the following problems.
1. Write a matlab function to evaluate
() = 1.014 4.643 + 12.2 1.99
using nested arithmetic. Name the function as NameExponential1.m
(for
MATH 105LA LAB 10 (44640)
Homework 3 (Due Date: Oct. 28, 2011)
In this assignment, you are required to write a matlab function for the
Secant Method and then write a script le to nd root for a function by
using the nished matlab function for secant method
/ > (gm 5 ml
' I
I l 1 9 42 2/6 w Y L
M133 0%
Saw L
Nulerical Analysis . S 4 5? l
MATH 105A . 1 1
TA: Ta Pens Date: 09/29/2016
Quiz 1
X Probleml:
\ g 1 a) Use threedigit arithmetic to compute the absolute Hand relative e or for the ap-
proximation p of