using System; using System.Collections.Generic; using System.Linq; using System.Text; using V = Science.Mathematics.VectorCalculus; namespace VectorCalculus5Ed.Chapter1.Section2 { public class Example05 { public Example05() { } private string result; public string Result { get{return result;} } public void Compute() { V.Vector a = - V.UnitVector.i + V.UnitVector.j + V.UnitVector.k; V.Vector b = 3.0 * V.UnitVector.i + V.UnitVector.k; double s = a * b; result += Math.Abs(s).ToString() + " <= " + (a.Length*b.Length).ToString() + "\r\n"; } } } /* 2 <= 5.47722557505166 */