using System; using System.Collections.Generic; using System.Linq; using System.Text; using L = Science.Mathematics.LinearAlgebra; namespace Strang3Ed.Chapter03.Section1 { public class Example04 { public Example04() { } private string result; public string Result { get{return result;} } public void Compute() { double[,] a = {{1.0,0.0}, {4.0,3.0}, {2.0,3.0}}; L.Matrix A = new L.Matrix(a); double[] x = {1.0,2.0}; L.ColumnSpace C = new L.ColumnSpace(A); L.Vector v = C.LinearCombination(x); result += v.ToString(); } } } /* 1 10 8 */