using System; using System.Collections.Generic; using System.Linq; using System.Text; using V = Science.Mathematics.VectorCalculus; namespace VectorCalculus5Ed.Chapter7.Section7 { public class Example01 { public Example01() { } private string result; public string Result { get{return result;} } public void Compute() { Science.Mathematics.Function.ToLastType ff = new Science.Mathematics.Function.ToLastType(func); V.Surface s = new V.Surface(ff); double[] at = { 1.0, 2.0 }; result += s.CurvatureGauss(at).ToString() + "\r\n"; result += s.CurvatureMean(at).ToString() + "\r\n"; } private double[] func(double[] u) { double[] x = new double[3]; x[0] = u[0] + u[1] + 2.0; x[1] = 2.0*u[0] + 4.0*u[1] + 4.0; x[2] = 3.0*u[0] + 5.0*u[1] + 8.0; return x; } } } /* 1.35649175409414E-19 -3.25558780204851E-09 */