using System; using System.Collections.Generic; using System.Linq; using System.Text; using L = Science.Mathematics.LinearAlgebra; namespace Strang3Ed.Chapter02.Section3 { public class Example02 { public Example02() { } private string result; public string Result { get { return result; } } public void Compute() { L.Matrix I = new L.IdentityMatrix(3); L.Matrix A = new L.Matrix(3, 3); A[2, 0] = 1.0; L.Matrix E = I - (4.0 * A); double[] y = { 1.0, 3.0, 9.0 }; L.Vector b = new L.Vector(y); L.Vector c = E * b; result += c.ToString() + "\r\n"; } } } /* 1 3 5 */