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

  1.                            - 1 -
  2. 24th March, 1990
  3.  
  4. About TSMATR in General
  5. =======================
  6.  
  7. This package may be used and distributed freely for NON-COMMERCIAL,
  8. NON-INSTITUTIONAL, PRIVATE purposes, provided it is not changed in any way.
  9. For ANY other usage contact the author. No part of this package may be
  10. distributed separately. Uploading to bulletin boards is encouraged.
  11.  
  12. The programs are under development. Comments and contacts are welcome. If you
  13. have any comments, please do not hesitate to use electronic mail for
  14. communication.
  15. InterNet address: ts@chyde.uwasa.fi         (preferred)
  16. Funet address:    GADO::SALMI
  17. Bitnet address:   SALMI@FINFUN
  18. FidoNet address:  2:515/1 (Micro Maniacs Opus, To: Timo Salmi)
  19.  
  20. The author shall not be liable to the user for any direct, indirect or
  21. consequential loss arising from the use of, or inability to use, any program
  22. or file howsoever caused. No warranty is given that the programs will work
  23. under all circumstances.
  24.  
  25. Timo Salmi
  26. Professor of Accounting and Business Finance
  27. School of Business Studies, University of Vaasa
  28. P.O. BOX 297, SF-65101 Vaasa, Finland
  29.  
  30.  
  31. SUMMARY:
  32.  
  33. Searching Archive: TSMATR11.ARC - Matrix calculations by T.Salmi  
  34. Filename        Comment                             Date      Time  
  35. --------        --------------------------------    ----      ----  
  36. LINEQ.EXE       Simultaneous linear equations     03-24-90  18:13:56
  37. MATINV.EXE      Inverse of a square matrix        03-24-90  18:21:18
  38. MATMUL.EXE      Multiplication of two matrixes    03-24-90  18:33:42
  39. TSMATR.INF      Document                          03-24-90  18:51:18
  40. TSMATR.NWS      News concerning this package      03-24-90  19:44:56
  41. TSPROG.INF      List of PD programs from T.Salmi  03-06-90  23:48:04
  42. VAASA.INF       Info: Finland, Vaasa, U of Vaasa  02-02-90  11:52:54
  43. ----            ------             ------  -----
  44. 0007            134413              93230   31%
  45.  
  46.  
  47.                            - 2 -
  48.  
  49.  
  50. LINEQ (Ver 1.1)
  51. ===============
  52.                                                                           
  53. Solves simultaneous equations. The maximum capacity of the program is 30 *
  54. 30. You give your problem directly as equations from file or keyboard. The
  55. program will ask for your choices of the options available.
  56.  
  57. An example of acceptable input to LINEQ:
  58.   !Exclamation marks can be used for comments                             
  59.    X + 2Y +  Z = 13     !The first equation                               
  60.              Z =  5                                                       
  61.   -X +  Y +  Z =  8                                                       
  62.   END                   !To denote the end                                
  63.                                                                           
  64. The program has a built-in help system, which can be invoked by ? at each 
  65. interactive question. Use this help for more instructions.
  66.  
  67. The method for solving the simultaneous linear equations is Gaussian
  68. elimination as presented in Turbo Pascal Version 4.0 Numerical Toolbox. I
  69. measure the reliability of the solution x of the simultaneous equations
  70. Ax = b is as follows. The elements of b-Ax are calculated, and the sum of
  71. their absolute values is reported as the 'inaccuracy of the solution'.
  72.  
  73.  
  74. MATINV (Ver 1.1)
  75. ================
  76.  
  77. Usage: MATINV [optional input file name] [optional output file name]
  78.    or: MATINV ?
  79.  
  80. This program calculates the inverse and the determinant of a square matrix.
  81.  
  82. The input can be taken from a file or the keyboard.
  83. An example of the input:
  84.  !Exclamation marks can be used for optional comments
  85.  100  20  !First row
  86.   80  10  !Second row
  87. A row can be continued by using an & or a * at the end. E.g.
  88.  100 &
  89.   20  !First row
  90. The dimension of the matrix is defined by the number of elements on the first
  91. row. When given from the keyboard, the input can be exited by entering END.
  92.  
  93. The results are checked by multiplying the inverse with the original matrix
  94. and comparing the result to an unity matrix. (Many, even professional,
  95. programs lack this essential test.)
  96.  
  97. The algorithm used for inverting the matrix, and calculating the determinant,
  98. are exactly the same as used in Turbo Pascal Version 4.0 Numerical Toolbox
  99. routines Inverse and Determinant. The former applies Gauss-Jordan elimination.
  100. The present MATINV program and the design of the user interface are, however,
  101. due to yours truly. As to the algorithm for calculating the inverse matrix, it
  102. is not satisfactory, which is somewhat surprising considering the source.
  103. Inverting matrixes with elements of a very different scale, the results are
  104. doubtful. Therefore, the deviation from unity measure, which I have deviced,
  105. is doubly important. The deviation measure is calculated as follows. Let A
  106. denote the original square matrix, B the inverse calculated by the program, I
  107. and identity matrix. First I calculate the matrix A*B-I, and then the sum of
  108. the absolute values of the elements of this matrix. This is what I call the
  109. deviation from unity. An example of a problematic case is given by
  110.  
  111. 100000000.00 2.00 3.00
  112.         1.00 2.01 3.00
  113.         0.01 0.02 0.03
  114.  
  115.  
  116. MATMUL (Ver 1.0)
  117. ================
  118.  
  119. Usage: MATMUL [optional input file name] [optional output file name] 
  120.    or: MATMUL ?                                                      
  121.                                                                      
  122. This program multiplies two matrixes.                                
  123.                                                                      
  124. The input can be taken from a file or the keyboard.                  
  125. An example of the input:                                             
  126.    !Exclamation marks can be used for optional comments              
  127.    100  20  !First row of the first matrix                           
  128.     80  10  !Second row of the first matrix
  129.    END                                                               
  130.     40  15  18    !First row of the second matrix                    
  131.     11  22 102    !Second row of the second matrix                   
  132.    END                                                               
  133. A row can be continued by using an & or a * at the end. E.g.         
  134.    100 &                                                             
  135.     20  !First row                                                   
  136.