using System; using System.Collections.Generic; using System.Linq; using System.Text; using V = Science.Mathematics.VectorCalculus; namespace VectorCalculus5Ed.Chapter1.Section2 { public class Example09 { public Example09() { } private string result; public string Result { get{return result;} } public void Compute() { V.Vector a = V.UnitVector.i + V.UnitVector.j; V.Vector b = 2.0*V.UnitVector.i + V.UnitVector.j + V.UnitVector.k; V.Vector sum = a + b; double ans = a.Length + b.Length; result += sum.Length.ToString()+" <= "+ans.ToString()+ "\r\n"; } } } // 3.74165738677394 <= 3.86370330515627