Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- Matrix a = new Matrix(new double [,]{{1,2,3},{4,5,6}});
- Matrix b = new Matrix(new double[,] {{9,8,7},{6,5,4}});
- Matrix c = new Matrix(new double[,] { { 9, 8, 7 }, { 6, 5, 4 }, { 6, 8, 4 } });
- Console.WriteLine("A\n{0}\n", a);
- Console.WriteLine("B\n{0}\n",b);
- Console.WriteLine("A+B\n{0}\n", a+b);
- Console.WriteLine("A-B\n{0}\n", a-b);
- Console.WriteLine("-A\n{0}\n", -a);
- Console.WriteLine("DetC\n{0}\n", c.Determinant());
- // Console.WriteLine("A-B\n{0}\n", a * b);
- Console.WriteLine("A-B\n{0}\n", c *c);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement