using System; using System.Collections.Generic; using System.Linq; using System.Text; using L = Science.Mathematics.LinearAlgebra; namespace Strang3Ed.Chapter04.Section2 { public class Example02 { public Example02() { } private string result; public string Result { get { return result; } } public void Compute() { double[] x = { 1.0, 2.0, 2.0 }; L.Vector a = new L.Vector(x); L.Projection obj = new L.Projection(a); result += obj.ProjectionMatrix.ToString() + "\r\n"; } } } /* 0.111111111111111 0.222222222222222 0.222222222222222 0.222222222222222 0.444444444444444 0.444444444444444 0.222222222222222 0.444444444444444 0.444444444444444 */