Guest User

Untitled

a guest
Aug 3rd, 2019
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.55 KB | None | 0 0
  1. mayank@mayank-Lenovo-ideapad-310-15IKB:~/Desktop/mynk/ARDN/VISMA/visma$ ./run visma
  2. Welcome! This is Visual Maths Interactive Shell...
  3. type 'help' for a User Manual and Ctrl + D to Exit prompt
  4.  
  5. >>> mat_add([11 2 32; 12 12 33; 12 311 11], [1 2 3; 33 33 54; 12 311 11])
  6. INPUT: Two matrices provided as follows:
  7.  
  8. 1st Matrix Provided:
  9. 11.0    2.0     32.0
  10. 12.0    12.0    33.0
  11. 12.0    311.0   11.0
  12.  
  13. 2nd Matrix Provided:
  14. 1.0     2.0     3.0
  15. 33.0    33.0    54.0
  16. 12.0    311.0   11.0
  17.  
  18.  
  19. OPERATION: Addition
  20.  
  21. RESULT: Result Matrix calculated as:
  22. 12.0    4.0     35.0
  23. 45.0    45.0    87.0
  24. 24.0    622.0   22.0
  25.  
  26.  
  27. >>> mat_mult([11 2 32; 12 12 33; 12 311 11], [1 2 3; 33 33 54; 12 311 11])
  28. INPUT: Two matrices provided as follows:
  29.  
  30. 1st Matrix Provided:
  31. 11.0    2.0     32.0
  32. 12.0    12.0    33.0
  33. 12.0    311.0   11.0
  34.  
  35. 2nd Matrix Provided:
  36. 1.0     2.0     3.0
  37. 33.0    33.0    54.0
  38. 12.0    311.0   11.0
  39.  
  40.  
  41. OPERATION: Multiplication
  42.  
  43. RESULT: Result Matrix calculated as:
  44. 461.0   10040.0 493.0
  45. 804.0   10683.0 1047.0
  46. 10407.0 13708.0 16951.0
  47.  
  48.  
  49. >>> mat_sub([11 2 32; 12 12 33; 12 311 11], [1 2 3; 33 33 54; 12 311 11])
  50. INPUT: Two matrices provided as follows:
  51.  
  52. 1st Matrix Provided:
  53. 11.0    2.0     32.0
  54. 12.0    12.0    33.0
  55. 12.0    311.0   11.0
  56.  
  57. 2nd Matrix Provided:
  58. 1.0     2.0     3.0
  59. 33.0    33.0    54.0
  60. 12.0    311.0   11.0
  61.  
  62.  
  63. OPERATION: Subtraction
  64.  
  65. RESULT: Result Matrix calculated as:
  66. 10.0    0       29.0
  67. -21.0   -21.0   -21.0
  68. 0       0       0
  69.  
  70.  
  71. >>> mat_determinant([11 2 32; 12 12 33; 12 311 11])
  72. INPUT: Single matrix provided as follows:
  73. 1st Matrix Provided:
  74. 11.0    2.0     32.0
  75. 12.0    12.0    33.0
  76. 12.0    311.0   11.0
  77.  
  78. OPERATION: Determinant
  79.  
  80. RESULT: Result calculated as:
  81. 3903.0
  82.  
  83. >>> mat_trace([11 2 32; 12 12 33; 12 311 11])
  84. INPUT: Single matrix provided as follows:
  85. 1st Matrix Provided:
  86. 11.0    2.0     32.0
  87. 12.0    12.0    33.0
  88. 12.0    311.0   11.0
  89.  
  90. OPERATION: Trace: sum of diagonal elements
  91.  
  92. RESULT: Result calculated as:
  93. 34.0
  94.  
  95. >>> mat_inverse([11 2 32; 12 12 33; 12 311 11])
  96. INPUT: Single matrix provided as follows:
  97. 1st Matrix Provided:
  98. 11.0    2.0     32.0
  99. 12.0    12.0    33.0
  100. 12.0    311.0   11.0
  101.  
  102. OPERATION: inverse
  103.  
  104. RESULT: Result Matrix calculated as:
  105. -2.5937266616878265     2.5421956684092604      -0.08140403286034355
  106. 0.07190265486725664     -0.07190265486725664    0.005530973451327434
  107. 1.025736434108527       -0.9745736434108527     0.031007751937984496
  108.  
  109.  
  110. >>>
  111. [48]+  Stopped                 ./run visma
  112. mayank@mayank-Lenovo-ideapad-310-15IKB:~/Desktop/mynk/ARDN/VISMA/visma$
Add Comment
Please, Sign In to add comment