using System; using System.Collections.Generic; using System.Linq; using System.Text; using V = Science.Mathematics.VectorCalculus; namespace VectorCalculus5Ed.Chapter1.Section3 { public class Example06 { public Example06() { } private string result; public string Result { get{return result;} } public void Compute() { V.Vector a = V.UnitVector.i + V.UnitVector.j; V.Vector b = V.UnitVector.j + V.UnitVector.k; V.Vector c = a % b; V.UnitVector u = new V.UnitVector(c); result += u[0].ToString() + " " + u[1].ToString() + " " + u[2].ToString() + "\r\n"; result += (1.0 / Math.Sqrt(3.0)).ToString() + "\r\n"; } } } /*0.577350269189626 -0.577350269189626 0.577350269189626 0.577350269189626 */