Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
59Activity
0 of .
Results for:
No results containing your search query
P. 1
Numerical Mathematics With MATLAB

Numerical Mathematics With MATLAB

Ratings:

4.92

(12)
|Views: 2,729|Likes:
Published by Reza Abazari
I am Reza Abazari, This book include some useful m.file that are in Numerical Analysis.
I am Reza Abazari, This book include some useful m.file that are in Numerical Analysis.

More info:

Published by: Reza Abazari on Jan 11, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF or read online from Scribd
See more
See less

08/14/2013

 
 
Numerical MathemNumerical MathemNumerical MathemNumerical Mathem
 
atics withatics withatics withatics with
MATLABMATLABMATLABMATLAB
 
Reza Abazari
2008200820082008
 
 
2
 
Contents
1. Rootfinding for Nonlinear Equations ...…......………….………………….1-38 2. Numerical Linear Algebra ……………………………….……..…………..40-76 3.PolynomialInterpolation ………………………………….….……………78-1024.Numerical Integration ………………………..…………….…………..…104-137 5.Nonlinear Systems and Numerical Optimization ……..….………….139-169 6. Numerical solution of ODE ………………….…………….…………….171-1997. Numerical solution of PDE …………………..……………..……………201-235
 
3
 
1. Rootfinding for Nonlinear Equations 
function R = approot (f,X,epsilon)% Input - f is object function% - X is the vector of abscissas% - epsilon is the tolerance% Output - R is the vector of approximate locations for roots% If f is an M-file function call R = approot (@f,X,epsilon).% If f is an anonymous function call R = approot (f,X,epsilon).% Copyright by Reza Abazari 2008-04-23% Email :abazari-r@uma.ac.ir Y=f(X);yrange = max(Y)-min(Y);epsilon2 = yrange*epsilon;n=length(X);m=0;X(n+1)=X(n);Y(n+1)=Y(n);for k=2:nif Y(k-1)*Y(k) <= 0,m=m+1;R(m)=(X(k-1)+X(k))/2;ends=(Y(k)-Y(k-1))*(Y(k+1)-Y(k));if (abs(Y(k)) < epsilon2) & (s <= 0),m=m+1;R(m)=X(k);endend@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@% bisec_g(f_name, a,c, xmin, xmax, n_points)% Bisection method with graphics% a, c : end points of initial interval% xmin and xmax : limits on the graphic plot.% n_points: number of points used in plotting.%function bisec_g(f_name, a,c, xmin, xmax, n_points)% it_limit : limit of iteration number% Y_a, Y_c : y values of the current end points% fun_f(x) : functional value at x% Copyright by Reza Abazari 2008-04-23% Email :abazari-r@uma.ac.ir clg, hold off;hold onclear Y_a, clear Y_cwid_x = xmax - xmin; dx = (xmax- xmin)/n_points;xp=xmin:dx:xmax; yp=feval(f_name, xp);plot(xp,yp); xlabel('x');ylabel('f(x)');title('Bisection Method')ymin=min(yp); ymax=max(yp);wid_y = ymax-ymin;

Activity (59)

You've already reviewed this. Edit your review.
Asif Sunny added this note
I want to download this book, pls help
1 thousand reads
1 hundred reads
Pramod Gowda liked this
lumafa2009 liked this
mashraf2 liked this
ajd.nanthakumar liked this
jkl316 liked this
Mohammad Zehab liked this
Na Ser added this note
how can i download this book?

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->