using System; using System.Collections.Generic; using System.Linq; using System.Text; using V = Science.Mathematics.VectorCalculus; namespace VectorCalculus5Ed.Chapter1.Section3 { public class Example08 { public Example08() { } private string result; public string Result { get{return result;} } public void Compute() { V.Point p = new V.Point(3); p[0] = 1.0; p[1] = 1.0; V.Vector a = new V.Vector(p); V.Point r = new V.Point(3); r[0] = 0.0; r[1] = 2.0; V.Vector b = new V.Vector(r); V.Point q = new V.Point(3); q[0] = 3.0; q[1] = 2.0; V.Vector c = new V.Vector(q); V.Vector v = (b - a) % (c - a); result += (v.Length/2.0).ToString() + "\r\n"; } } } // 1.5