home *** CD-ROM | disk | FTP | other *** search
/ Math Solutions 1995 October / Math_Solutions_CD-ROM_Walnut_Creek_October_1995.iso / pc / mac / diffequa / numerica / readme.m < prev   
Encoding:
Text File  |  1995-04-05  |  3.2 KB  |  96 lines

  1.                NUMERICAL METHODS:
  2.                MATLAB Programs
  3.            (c) 1995 by John H. Mathews
  4.  
  5.                  To Accompany
  6.  
  7.                NUMERICAL  METHODS
  8.             for Mathematics, Science,
  9.                 and Engineering
  10.                 Second Edition
  11.                PRENTICE HALL, INC.
  12.                ISBN 0-13-624990-6
  13.                ISBN 0-13-625047-5
  14.           Englewood Cliffs, NJ 07632
  15.                (c) 1992, 1987 by
  16.                 John H. Mathews
  17.      California State University, Fullerton
  18.          E-mail  in%"mathews@fullerton.edu"
  19.  
  20.  
  21.  
  22.    This free software is complements of the author.
  23. It is permissible to copy this software for educational purposes, provided
  24. that it is used with the textbook. The software may not be sold for profit and
  25. may only be sold in such a way that the cost of reproduction are recovered.
  26.  
  27.  
  28.  
  29.                        PREFACE
  30.  
  31.   This disk contains numerical methods software coded in 
  32. MATLAB.  The algorithms are described in the text NUMERICAL 
  33. METHODS for Mathematics, Science, and Engineering.  
  34.   A printed version of this material is titled 
  35. "MATLAB Programming Guidebook for NUMERICAL METHODS."
  36.   The author appreciates correspondence regarding both the
  37. textbook and the supplements. You are welcome to correspond
  38. by mail or electronic mail.
  39.  
  40. Prof.  John  H.  Mathews
  41. Department of Mathematics
  42. California State University Fullerton
  43. Fullerton, CA  92634
  44. (714) 773-3631
  45. (714) 773-3196
  46. FAX: (714) 773-3972
  47. E-mail:  in%"mathews@fullerton.edu"
  48.  
  49.                     INSTRUCTIONS
  50.  
  51. 1. For the PC version:  
  52.     Move to the appropriate directory:  chap_1, chap_2, ... etc.
  53.  
  54.     For the Macintosh version:  
  55.     Move to the appropriate folder:  chap_1, chap_2, ... etc.
  56.  
  57. 2. All of the algorithms for the text have been coded in
  58.     Matlab's programming language and stored as subroutines.  
  59.     The example files for  chap_1  are named  a1_1.m, a1_2.m, ... etc.
  60.     For Chapter 1 the examples are illustrations of the theorems.
  61.  
  62. 3. The textbook discusses the following algorithm:
  63.  
  64.     Algorithm 2.1 (Fixed Point Iteration). To find a solution to the equation
  65.     x  =  g(x)   by starting with  p(0)  and iterating   p(n+1)  =  g(p(n)).
  66.  
  67.     To run the example for Algorithm 2.1 the user needs to use the script file 
  68.     named a2_1.m.  This is accomplished by executing the Matlab command:
  69.  
  70.     a2_1 
  71.  
  72. 4. The Matlab script in  a2_1.m  will call the subroutine named  fixpt.m 
  73.     which is included in the sub directory or folder named  chap_2.
  74.     Also, for the above example, the following function must exist as a 
  75.     M-file named  g.m.
  76.  
  77.     function y = g(x)
  78.     y = 1 + x - x.^2 ./4;
  79.  
  80.     For demonstration purposes, I have used a special Matlab feature which 
  81.     opens and writes to a file to ensure that the above M-file  g.m  will exist
  82.     in the proper sub directory or folder along with the script file a2_1.m  and
  83.     function (subroutine) file  fixpt.m.  These commands are:
  84.  
  85.     delete g.m
  86.     diary g.m; disp('function y = g(x)');...
  87.                disp('y = 1 + x - x.^2 ./4;');...
  88.     diary off;
  89.  
  90. 5. Once the process of writing a function M-files has been mastered,
  91.     it is not necessary to use the diary commands mentioned above 
  92.     to create this function M-file named g.m.  The user can then
  93.     delete these lines from the script file  a2_1.m.
  94.  
  95.  
  96.