using System; using System.Collections.Generic; using System.Linq; using System.Text; using L = Science.Mathematics.LinearAlgebra; namespace Strang3Ed.Chapter01.Section2 { public class Example06 { public Example06() { } private string result; public string Result { get { return result; } } public void Compute() { double a = 2.0, b = 2.0; L.Vector v = new L.Vector(2); v[0] = a; v[1] = b; L.Vector w = new L.Vector(2); w[0] = b; w[1] = a; result += (Math.Abs(v * w)).ToString() + " <= " + (v.Length * w.Length).ToString() + "\r\n"; } } } /* 8 <= 8 */