home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
calcultr
/
tsmatr11.arc
/
TSMATR.NWS
< prev
next >
Wrap
Text File
|
1990-03-24
|
3KB
|
51 lines
University of Vaasa, Finland, Sun 4, (chyde.uwasa.fi) has a
collection of PD and shareware PC programs available by anonymous
ftp. The file 0news-ts contains news about the TS-programs in the
/pc/ts directory (in reverse order). This text, which you now have,
is an edited extract from the 0news-ts file.
...................................................................
Prof. Timo Salmi (Moderating at anon. ftp site 128.214.12.3)
School of Business Studies, University of Vaasa, SF-65101, Finland
Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun
...................................................................
Sat 24-Mar-90: I have updated the set of my matrix calculation
programs. The new release is (/pc/ts/)tsmatr11.arc. This package
contains the matrix operations, which are solving simultaneous
linear equations (lineq.exe), calculating the inverse of a square
matrix (matinv.exe), and multiplying two matrixes (matmul.exe). The
maximum number of the simultaneous equations is 30, and the maximum
dimension in the matrix inversion program is 25x25. There must be
innumerable such programs around, and the algorithms used have
nothing much out of the ordinary. They are based on the Turbo Pascal
Numerical Toolbox, which has been used in accordance with Borland's
license.
There is one trick of mine, however, in these programs, which is
often lacking even in commercial packages. This is checking the
feasibility of the results. What I do is calculate a deviation
measure as follows. Let A denote the original square matrix, B the
inverse computed by the program, I and identity matrix. First the
matrix A*B-I is calculated, and then the sum of the absolute values
of the elements of this matrix. This is what I call the deviation
from unity. I have found this to be a very handy test of reliability
of the results especially in case of problematic matrixes.
Nevertheless, the main feature of this package is my user
interface (in programming terms the parser I've built). The
simultaneous equations are given in what is called an "as-is" or
"equations" format. This means that you can input e.g.
2x + 7.8y + 5.0z = 13.4
3x - 8.9y - z = 18.3
-x + 5.6 - 1.3 = 10.3
directly to the lineq.exe program, from file or from keyboard. If
you give the input from the keyboard you now have full line editing
potential with CursorRight, CursorLeft, BackSpace, Del, Home, End,
Insert, and Escape keys. Furthermore, there is input recall (using
the PageUp key), and orderly break at any time with the ctrl-C or
the break key. I have also corrected a bug in lineq.exe, which
prevented using the continuation line potential. This potential
means that you can write e.g.
2x + 7.8y &
+ 5.0z = 13.4
Also updated the directory routine, which can be invoked from within
lineq.exe if the input file is not found.