Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace ConsoleApplication1
  7. {
  8. class Program
  9. {
  10. static void Main(string[] args)
  11. {
  12.  
  13. Matrix a = new Matrix(new double [,]{{1,2,3},{4,5,6}});
  14. Matrix b = new Matrix(new double[,] {{9,8,7},{6,5,4}});
  15. Matrix c = new Matrix(new double[,] { { 9, 8, 7 }, { 6, 5, 4 }, { 6, 8, 4 } });
  16. Console.WriteLine("A\n{0}\n", a);
  17. Console.WriteLine("B\n{0}\n",b);
  18. Console.WriteLine("A+B\n{0}\n", a+b);
  19. Console.WriteLine("A-B\n{0}\n", a-b);
  20. Console.WriteLine("-A\n{0}\n", -a);
  21. Console.WriteLine("DetC\n{0}\n", c.Determinant());
  22. // Console.WriteLine("A-B\n{0}\n", a * b);
  23. Console.WriteLine("A-B\n{0}\n", c *c);
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement