using System; using System.Collections.Generic; using System.Linq; using System.Text; using L = Science.Mathematics.LinearAlgebra; namespace Strang3Ed.Chapter02.Section3 { public class Example01 { public Example01() { } private string result; public string Result { get{return result;} } public void Compute() { double[,] x = {{3.0,4.0}, {5.0,6.0}}; double[] y = { 2.0, 1.0 }; L.Matrix A = new L.Matrix(x); L.Vector b = new L.Vector(y); L.Vector c = A*b; result += c.ToString() + "\r\n"; double[] yp = { 3.0, 4.0 }; L.Vector a = new L.Vector(yp); result += (a*b).ToString() + "\r\n"; } } } /* 10 16 10 */