Tong quat

30
NUMERICAL ANAL YSIS PROGRAMS IN MAPLE This README le gives instruc tions for the Maple progr ams on the disk. The programs are design ed to run on a minimally congured computer. Minimal hard disk space plus the Maple package are all that is neede d. All the programs are given as ASCII les with the .TXT exte nsion and as Maple worksh eets with the .MWS extension. The .TXT les can be altered using any word processor that creates a standard ASCII le. These are commonly called “Text Only” les. The .MWS les can be altered only within Maple. T o run the prog rams wit h the .TXT extensio n, open the le in Maple as a ”maple text” le. When presented with the ”text format choice”, select the option ”OK”. The le will be loaded as a Maple worksheet. Once a worksheet is loaded into Maple, scroll to the top of the le and hit ENTER on the text portion of the line > Restart; This will reinitializ e Maple and move the cursor to the next block. Keep hittin g ENTER on the text portion of the program. Hitting ENTER on the rst program line will compile the program and send the cursor to the bottom of the le. The last line of the le will be the command causing execution of the program. Some of the programs require the input of large amounts of data or generate extensive output. To enable the programs to be run quickly and eciently, the input data can be placed in data les and the data les read by the program. When the output is likely to be extensive, the programs have been constructed so that it is convenient to place the output directly into an output le. The programs will prompt you for the form of the input or out put that you wo uld like to use. F or exa mpl e, whe n running the prog ram for Neville’s method, NEVLLE31.MWS, using the dened data le NEVLLE31.DTA for the sample problem, you will rst see a screen that states: Cho ice of inp ut met hod : 1. Input entry by entry from the keyboard 2. In pu t da ta from a te xt file 3. Generate data using a function F Choose 1, 2, or 3 please If you choose 1 you will need to enter all the data for the program from the keyboard, and any mistake in a data entry will require the progr am to be rer un. Choosing 2 will lead to the input of the data le NEVLLE31.DTA. Choosing 3 will cause the program to prompt you for the input of the function F. The Maple prog rams are cont ained in four subdirect ories: MWS-5 , TXT-5, MWS-8, and TXT-8. The MWS directo ries contai n Maple works heet s for Windows (DOS) based versions of Maple. They illustrate the input and executi on of the programs applied to the same problems. The TXT subdirecto ries cont ain ASCII les with the .TXT extension and can be run on any system on which Maple is installed. These les will be converted into Maple worksheets as described above. The directories MWS-5 and TXT-5 are for releases of Maple earlier than release 6. The main dierence is the syntax of the evaln comma nd, which is used to implement functions of mult iple varia bles. The older releases used syntax of the form eva ln( a . (1. .3) ); to obtain a 1 ,a 2 , a 3 The syntax in the newer versions utilizing MWS-8 and TXT-8 obtains this with the command eva ln( a || (1. .3) ); The only programs that are eected by this change are the .TXT and .MWS les for RKO4SY57, NWTSY101, BROYM102, STPDC104, and CONTM104

Transcript of Tong quat

Page 1: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 1/30

Page 2: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 2/30

Page 3: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 3/30

Page 4: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 4/30

Page 5: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 5/30

Page 6: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 6/30

Page 7: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 7/30

Page 8: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 8/30

Page 9: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 9/30

Page 10: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 10/30

Page 11: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 11/30

Page 12: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 12/30

Page 13: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 13/30

Page 14: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 14/30

Page 15: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 15/30

Page 16: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 16/30

Page 17: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 17/30

Page 18: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 18/30

Page 19: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 19/30

Page 20: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 20/30

Page 21: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 21/30

Page 22: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 22/30

Page 23: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 23/30

Page 24: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 24/30

Page 25: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 25/30

Page 26: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 26/30

Page 27: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 27/30

Page 28: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 28/30

Page 29: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 29/30

Page 30: Tong quat

8/9/2019 Tong quat

http://slidepdf.com/reader/full/tong-quat 30/30