Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mayank@mayank-Lenovo-ideapad-310-15IKB:~/Desktop/mynk/ARDN/VISMA/visma$ ./run visma
- Welcome! This is Visual Maths Interactive Shell...
- type 'help' for a User Manual and Ctrl + D to Exit prompt
- >>> mat_add([11 2 32; 12 12 33; 12 311 11], [1 2 3; 33 33 54; 12 311 11])
- INPUT: Two matrices provided as follows:
- 1st Matrix Provided:
- 11.0 2.0 32.0
- 12.0 12.0 33.0
- 12.0 311.0 11.0
- 2nd Matrix Provided:
- 1.0 2.0 3.0
- 33.0 33.0 54.0
- 12.0 311.0 11.0
- OPERATION: Addition
- RESULT: Result Matrix calculated as:
- 12.0 4.0 35.0
- 45.0 45.0 87.0
- 24.0 622.0 22.0
- >>> mat_mult([11 2 32; 12 12 33; 12 311 11], [1 2 3; 33 33 54; 12 311 11])
- INPUT: Two matrices provided as follows:
- 1st Matrix Provided:
- 11.0 2.0 32.0
- 12.0 12.0 33.0
- 12.0 311.0 11.0
- 2nd Matrix Provided:
- 1.0 2.0 3.0
- 33.0 33.0 54.0
- 12.0 311.0 11.0
- OPERATION: Multiplication
- RESULT: Result Matrix calculated as:
- 461.0 10040.0 493.0
- 804.0 10683.0 1047.0
- 10407.0 13708.0 16951.0
- >>> mat_sub([11 2 32; 12 12 33; 12 311 11], [1 2 3; 33 33 54; 12 311 11])
- INPUT: Two matrices provided as follows:
- 1st Matrix Provided:
- 11.0 2.0 32.0
- 12.0 12.0 33.0
- 12.0 311.0 11.0
- 2nd Matrix Provided:
- 1.0 2.0 3.0
- 33.0 33.0 54.0
- 12.0 311.0 11.0
- OPERATION: Subtraction
- RESULT: Result Matrix calculated as:
- 10.0 0 29.0
- -21.0 -21.0 -21.0
- 0 0 0
- >>> mat_determinant([11 2 32; 12 12 33; 12 311 11])
- INPUT: Single matrix provided as follows:
- 1st Matrix Provided:
- 11.0 2.0 32.0
- 12.0 12.0 33.0
- 12.0 311.0 11.0
- OPERATION: Determinant
- RESULT: Result calculated as:
- 3903.0
- >>> mat_trace([11 2 32; 12 12 33; 12 311 11])
- INPUT: Single matrix provided as follows:
- 1st Matrix Provided:
- 11.0 2.0 32.0
- 12.0 12.0 33.0
- 12.0 311.0 11.0
- OPERATION: Trace: sum of diagonal elements
- RESULT: Result calculated as:
- 34.0
- >>> mat_inverse([11 2 32; 12 12 33; 12 311 11])
- INPUT: Single matrix provided as follows:
- 1st Matrix Provided:
- 11.0 2.0 32.0
- 12.0 12.0 33.0
- 12.0 311.0 11.0
- OPERATION: inverse
- RESULT: Result Matrix calculated as:
- -2.5937266616878265 2.5421956684092604 -0.08140403286034355
- 0.07190265486725664 -0.07190265486725664 0.005530973451327434
- 1.025736434108527 -0.9745736434108527 0.031007751937984496
- >>>
- [48]+ Stopped ./run visma
- mayank@mayank-Lenovo-ideapad-310-15IKB:~/Desktop/mynk/ARDN/VISMA/visma$
Add Comment
Please, Sign In to add comment