Numerical Methods Using MATLAB, 4e
23 Dec 2003
18 Aug 2006)
Companion software to accompany the book "Numerical Methods Using MATLAB"
function [P,iter]= seidel(G,P,delta, max1)
%Input - G is the nonlinear fixed-point system
% saved as an M-file function
% - P is the initial guess at the solution
% - delta is the error bound
% - max1 is the number of iterations
%Output - P is the seidel approximation to the solution
% - iter is the number of iterations required
%Use the @ notation call [P,iter]=seidel(@G, P, delta, ma).
% NUMERICAL METHODS: Matlab Programs
% (c) 2004 by John H. Mathews and Kurtis D. Fink
% Complementary Software to accompany the textbook:
% NUMERICAL METHODS: Using Matlab, Fourth Edition
% ISBN: 0-13-065248-2
% Prentice-Hall Pub. Inc.
% One Lake Street
% Upper Saddle River, NJ 07458
% X is the kth approximation to the solution
% Update the terms of X as they are calculated