using System; using System.Collections.Generic; using System.Linq; using System.Text; using L = Science.Mathematics.LinearAlgebra; namespace Strang3Ed.Chapter01.Section1 { public class ExampleA { public ExampleA() { } private string result; public string Result { get { return result; } } public void Compute() { L.Vector v = new L.Vector(3); v[0] = 1.0; v[1] = 1.0; v[2] = 0.0; L.Vector w = new L.Vector(3); w[0] = 0.0; w[1] = 1.0; w[2] = 1.0; L.Vector c = - v + (6.0 * w); result += c.ToString(); } } } /* -1 5 6 */