using System; using System.Collections.Generic; using System.Linq; using System.Text; using L = Science.Mathematics.LinearAlgebra; namespace Strang3Ed.Chapter01.Section1 { public class ExampleB { public ExampleB() { } private string result; public string Result { get { return result; } } public void Compute() { L.Vector v = new L.Vector(2); v[0] = 1.0; v[1] = 0.0; L.Vector w = new L.Vector(2); w[0] = 0.0; w[1] = 1.0; double c = 2.0, d = 1.0; L.Vector x = (c * v) + (d * w); result += x.ToString(); } } } /* 2 1 */