using System; using System.Collections.Generic; using System.Linq; using System.Text; using L = Science.Mathematics.LinearAlgebra; namespace Strang3Ed.Chapter07.Section1 { public class ExampleA { public ExampleA() { } private string result; public string Result { get { return result; } } public void Compute() { L.Matrix a = new L.Matrix(2,2); a[0,0] = 1.0; a[0,1] = 0.0; a[1,0] = 3.0; a[1,1] = 1.0; L.Vector v = new L.Vector(2); v[0] = 1.0; v[1] = 0.0; result += (a * v).ToString(); } } } /* 1 3 */