-
Notifications
You must be signed in to change notification settings - Fork 59
/
matman.html
406 lines (381 loc) · 11.5 KB
/
matman.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
<html>
<head>
<title>
MATMAN - An Interactive Matrix Manipulator
</title>
</head>
<body bgcolor="#EEEEEE" link="#CC0000" alink="#FF3300" vlink="#000055" >
<h1 align = "center">
MATMAN <br> The Matrix Manipulator
</h1>
<hr>
<p>
<b>MATMAN</b>
is a FORTRAN90 program which
allows an interactive user to define a matrix and carry out
the individual steps of certain algorithms.
</p>
<p>
The program is intended to do the arithmetic correctly, while forcing
a student to specify the correct sequence of operations to transform
an arbitrary matrix into row echelon form.
</p>
<p>
<b>MATMAN</b> was developed by Professor Charles Cullen of the University
of Pittsburgh, and John Burkardt, itinerant programmer.
</p>
<p>
<b>MATMAN</b> features include:
<ul>
<li>
<i>Interactivity</i>: students prescribe each row operation;
</li>
<li>
<i>Accuracy</i>: <b>MATMAN</b> does the arithmetic operations;
</li>
<li>
<i>Flexibility</i>: rational, real or decimal arithmetic may be used;
</li>
<li>
<i>Affordability</i>: the price is right (it's freeware);
</li>
<li>
<i>Portability</i>: complete FORTRAN source code available, executes
on IBM (DOS or Windows), Mac (68K or PPC), UNIX, VMS.
</li>
<li>
<i>Repeatability</i>: A transcript file records all work;
</li>
<li>
<i>Improvability</i>: The developers are responsive to user requests.
</li>
</ul>
</p>
<p>
<b>MATMAN</b> allows the user to:
<ul>
<li>
Request a sample problem, or type in a new one;
</li>
<li>
Choose decimal, integer, rational or real arithmetic;
</li>
<li>
Specify row or column operations in a natural form: "R1 <= 3 R1 + R2";
</li>
<li>
Determine if the matrix is in row echelon form;
</li>
</ul>
</p>
<h3 align = "center">
Licensing:
</h3>
<p>
The computer code and data files described and made available on this web page
are distributed under
<a href = "../../txt/gnu_lgpl.txt">the GNU LGPL license.</a>
</p>
<h3 align = "center">
Related Data and Programs:
</h3>
<p>
<b>MATMAN</b> is available in
<a href = "../../f77_src/matman/matman.html">a FORTRAN77 version</a> and
<a href = "../../f_src/matman/matman.html">a FORTRAN90 version</a>.
</p>
<h3 align = "center">
Source Code:
</h3>
<p>
<ul>
<li>
<a href = "matman.f90">matman.f90</a>, the source code;
</li>
<li>
<a href = "matman.sh">matman.sh</a>, commands to
compile and load the source code;
</li>
</ul>
</p>
<h3 align = "center">
Examples and Tests:
</h3>
<p>
<ul>
<li>
<a href = "input.txt">input.txt</a>, a sample set of input;
</li>
<li>
<a href = "output_sgi.txt">output_sgi.txt</a>,
the output file.
</li>
</ul>
</p>
<h3 align = "center">
List of Routines:
</h3>
<p>
<ul>
<li>
<b>MAIN</b> is the main program for MATMAN.
</li>
<li>
<b>CH_CAP</b> capitalizes a single character.
</li>
<li>
<b>CH_EQI</b> is a case insensitive comparison of two characters for equality.
</li>
<li>
<b>CH_IS_ALPHA</b> returns TRUE if C is an alphabetic character.
</li>
<li>
<b>CH_IS_DIGIT</b> returns .TRUE. if a character is a decimal digit.
</li>
<li>
<b>CH_TO_DIGIT</b> returns the integer value of a base 10 digit.
</li>
<li>
<b>CHANGE</b> allows the user to change an entry in the array.
</li>
<li>
<b>CHRCTF</b> reads an integer or rational fraction from a string.
</li>
<li>
<b>CHRCTG</b> reads an integer, decimal fraction or a ratio from a string.
</li>
<li>
<b>CHRINP</b> requests new input if the LINE buffer is empty.
</li>
<li>
<b>COL_ADD</b> adds a multiple of one column to another.
</li>
<li>
<b>COL_ADD_PARAM</b> gets and checks the column add parameters.
</li>
<li>
<b>COL_APP</b> allows the user to append a column to the matrix.
</li>
<li>
<b>COL_AUTO</b> automatically column reduces the current matrix.
</li>
<li>
<b>COL_DIV</b> divides a column of the matrix by a scale factor.
</li>
<li>
<b>COL_DIV_PARAM</b> gets and checks the column divide parameters.
</li>
<li>
<b>COL_MUL</b> multiplies a column of the matrix by a scale factor.
</li>
<li>
<b>COL_MUL_PARAM</b> gets and checks the column multiply parameters.
</li>
<li>
<b>COL_OP_CHECK</b> checks for commands given in the form of ECO's.
</li>
<li>
<b>COL_SWAP</b> swaps two columns of a matrix.
</li>
<li>
<b>DEC_ADD</b> adds two decimal quantities.
</li>
<li>
<b>DEC_DIGIT_SET</b> allows the user to specify the number of decimal digits.
</li>
<li>
<b>DEC_DIV</b> divides two decimal values.
</li>
<li>
<b>DEC_MUL</b> multiplies two decimals.
</li>
<li>
<b>DEC_PRINT</b> prints out decimal vectors and matrices.
</li>
<li>
<b>DEC_READ</b> reads a decimal, rational or integer, and returns a decimal fraction.
</li>
<li>
<b>DEC_ROUND</b> rounds a decimal fraction to a given number of digits.
</li>
<li>
<b>DEC_TO_R4</b> converts a decimal ITOP * 10**IBOT to an R4.
</li>
<li>
<b>DEC_TO_RAT</b> converts a decimal to a rational representation.
</li>
<li>
<b>DEC_TO_S_LEFT</b> returns a left-justified representation of IVAL * 10**JVAL.
</li>
<li>
<b>DIGIT_TO_CH</b> returns the character representation of a decimal digit.
</li>
<li>
<b>FORM</b> converts from one arithmetic form to another.
</li>
<li>
<b>HELLO</b> greets the user on startup.
</li>
<li>
<b>HELP</b> prints out a brief list of the available commands.
</li>
<li>
<b>I4_DATA</b> stores and retrieves common data items.
</li>
<li>
<b>I4_GCD</b> finds the greatest common divisor of I and J.
</li>
<li>
<b>I4_PRINT</b> prints out integer vectors and matrices.
</li>
<li>
<b>I4_RANDOM</b> returns a random integer in a given range.
</li>
<li>
<b>I4_READ</b> reads an integer from the input buffer.
</li>
<li>
<b>I4_SWAP</b> switches two integer values.
</li>
<li>
<b>I4_TO_S_LEFT</b> converts an integer to a left-justified string.
</li>
<li>
<b>INIT</b> initializes the data.
</li>
<li>
<b>LA_INP1</b> accepts the values of the entries of a matrix from the user.
</li>
<li>
<b>LA_OPT</b> checks for row echelon or reduced row echelon form.
</li>
<li>
<b>MAT_APPEND_IDENTITY</b> appends the identity matrix.
</li>
<li>
<b>MAT_PRINT</b> prints out the matrix.
</li>
<li>
<b>R4_PRINT</b> prints out real vectors and matrices.
</li>
<li>
<b>R4_READ</b> "reads" a real value from a line of text.
</li>
<li>
<b>R4_SWAP</b> switches two real values.
</li>
<li>
<b>R4_TO_DEC</b> converts a real value to a decimal fraction form.
</li>
<li>
<b>R4_TO_RAT</b> converts a real value to a rational value.
</li>
<li>
<b>R4_TO_S_LEFT</b> represents a real using 14 left_justified characters.
</li>
<li>
<b>R8_TO_DEC</b> converts an R8 to a decimal representation.
</li>
<li>
<b>RAT_ADD</b> adds two rational values.
</li>
<li>
<b>RAT_MUL</b> multiplies two fractions.
</li>
<li>
<b>RAT_PRINT</b> prints out rational vectors or matrices.
</li>
<li>
<b>RAT_READ</b> reads a rational value, expressed as integer, decimal or fraction.
</li>
<li>
<b>RAT_TO_DEC</b> converts a rational value to a decimal value.
</li>
<li>
<b>RAT_TO_R4</b> converts rational values to R4s.
</li>
<li>
<b>RAT_TO_S_LEFT</b> returns a left-justified representation of IVAL/JVAL.
</li>
<li>
<b>ROW_ADD</b> adds a multiple of one row to another.
</li>
<li>
<b>ROW_ADD_PARAM</b> gets and checks the row add parameters.
</li>
<li>
<b>ROW_AUTO</b> automatically row reduces the current matrix.
</li>
<li>
<b>ROW_DIV</b> divides row IROW of the A matrix by a scale factor.
</li>
<li>
<b>ROW_DIV_PARAM</b> gets and checks the row divide parameters.
</li>
<li>
<b>ROW_MUL</b> multiplies a row of the matrix by a scale factor.
</li>
<li>
<b>ROW_MUL_PARAM</b> gets and checks the row multiply parameters.
</li>
<li>
<b>ROW_OP_CHECK</b> checks for commands given in the form of ERO's.
</li>
<li>
<b>ROW_SWAP</b> swaps two rows of a matrix.
</li>
<li>
<b>S_BLANK_DELETE</b> removes blanks from a string, left justifying the remainder.
</li>
<li>
<b>S_BLANKS_DELETE</b> replaces consecutive blanks by one blank.
</li>
<li>
<b>S_CAP</b> replaces any lowercase letters by uppercase ones in a string.
</li>
<li>
<b>S_CHOP</b> "chops out" a portion of a string, and closes up the hole.
</li>
<li>
<b>S_EQI</b> is a case insensitive comparison of two strings for equality.
</li>
<li>
<b>S_READ</b> extracts a character string from the input buffer.
</li>
<li>
<b>S_TO_DEC</b> reads a number from a string, returning a decimal result.
</li>
<li>
<b>S_TO_I4</b> reads an I4 from a string.
</li>
<li>
<b>S_TO_R4</b> reads an R4 from a string.
</li>
<li>
<b>PROBLEM_SOLVE_RANDOM</b> sets up a random linear system problem.
</li>
<li>
<b>SIZE_SET</b> allows the user to specify the size of a new problem.
</li>
<li>
<b>MAT_RANDOM</b> sets up a random problem.
</li>
<li>
<b>VALUE_READ</b> allows the user to specify one entry in the array.
</li>
<li>
<b>TIMESTAMP</b> prints the current YMDHMS date as a time stamp.
</li>
</ul>
</p>
<p>
You can go up one level to <a href = "../f_src.html">
the FORTRAN90 source codes</a>.
</p>
<hr>
<i>
Last revised on 12 November 2006.
</i>
<!-- John Burkardt -->
</body>
</html>