home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / calculat / tsmatr11.zip / TSMATR.NWS < prev    next >
Text File  |  1990-03-24  |  3KB  |  51 lines

  1. University of Vaasa, Finland, Sun 4, (chyde.uwasa.fi) has a
  2. collection of PD and shareware PC programs available by anonymous
  3. ftp. The file 0news-ts contains news about the TS-programs in the
  4. /pc/ts directory (in reverse order). This text, which you now have,
  5. is an edited extract from the 0news-ts file.
  6. ...................................................................
  7. Prof. Timo Salmi        (Moderating at anon. ftp site 128.214.12.3)
  8. School of Business Studies, University of Vaasa, SF-65101, Finland
  9. Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun
  10. ...................................................................
  11.  
  12. Sat 24-Mar-90: I have updated the set of my matrix calculation
  13. programs. The new release is (/pc/ts/)tsmatr11.arc. This package
  14. contains the matrix operations, which are solving simultaneous
  15. linear equations (lineq.exe), calculating the inverse of a square
  16. matrix (matinv.exe), and multiplying two matrixes (matmul.exe). The
  17. maximum number of the simultaneous equations is 30, and the maximum
  18. dimension in the matrix inversion program is 25x25. There must be
  19. innumerable such programs around, and the algorithms used have
  20. nothing much out of the ordinary. They are based on the Turbo Pascal
  21. Numerical Toolbox, which has been used in accordance with Borland's
  22. license.
  23.    There is one trick of mine, however, in these programs, which is
  24. often lacking even in commercial packages. This is checking the
  25. feasibility of the results. What I do is calculate a deviation
  26. measure as follows. Let A denote the original square matrix, B the
  27. inverse computed by the program, I and identity matrix. First the
  28. matrix A*B-I is calculated, and then the sum of the absolute values
  29. of the elements of this matrix. This is what I call the deviation
  30. from unity. I have found this to be a very handy test of reliability
  31. of the results especially in case of problematic matrixes.
  32.    Nevertheless, the main feature of this package is my user
  33. interface (in programming terms the parser I've built). The
  34. simultaneous equations are given in what is called an "as-is" or
  35. "equations" format. This means that you can input e.g.
  36.      2x + 7.8y + 5.0z = 13.4
  37.      3x - 8.9y -    z = 18.3
  38.      -x + 5.6  - 1.3  = 10.3
  39. directly to the lineq.exe program, from file or from keyboard. If
  40. you give the input from the keyboard you now have full line editing
  41. potential with CursorRight, CursorLeft, BackSpace, Del, Home, End,
  42. Insert, and Escape keys. Furthermore, there is input recall (using
  43. the PageUp key), and orderly break at any time with the ctrl-C or
  44. the break key. I have also corrected a bug in lineq.exe, which
  45. prevented using the continuation line potential. This potential
  46. means that you can write e.g.
  47.      2x + 7.8y &
  48.      + 5.0z = 13.4
  49. Also updated the directory routine, which can be invoked from within
  50. lineq.exe if the input file is not found.
  51.