using System; using System.Collections.Generic; using System.Linq; using System.Text; using V = Science.Mathematics.VectorCalculus; namespace VectorCalculus5Ed.Chapter6.Section2 { public class Example01 { public Example01() { } private string result; public string Result { get{return result;} } public void Compute() { Science.Mathematics.Function.ToLastType f = new Science.Mathematics.Function.ToLastType(func); double[] at = { 2.0, 3.0 }; V.JacobianDeterminant obj = new V.JacobianDeterminant(f,at); obj.Compute(); result += obj.Result.ToString() + "\r\n"; } private double[] func(double[] u) { double[] x = new double[2]; x[0] = u[0] * Math.Cos(u[1]); x[1] = u[0] * Math.Sin(u[1]); return x; } } } /* 2.00000000000035 */