using System; using System.Collections.Generic; using System.Linq; using System.Text; using V = Science.Mathematics.VectorCalculus; namespace VectorCalculus5Ed.Chapter8.Section6 { public class Example07 { public Example07() { } private string result; public string Result { get{return result;} } public void Compute() { Science.Mathematics.Function.ToLastType fxy = new Science.Mathematics.Function.ToLastType(dxdy); Science.Mathematics.Function.ToLastType fyz = new Science.Mathematics.Function.ToLastType(dydz); Science.Mathematics.Function.ToLastType fzx = new Science.Mathematics.Function.ToLastType(dzdx); Science.Mathematics.Function.ToLastType ff = new Science.Mathematics.Function.ToLastType(surface); V.Surface s = new V.Surface(ff); s.Parameter1StartValue = 0.0; s.Parameter1EndValue = 1.0; s.Parameter2StartValue = 0.0; s.Parameter2EndValue = 1.0; V.IntegralOf2Form obj = new V.IntegralOf2Form(fxy, fyz, fzx, s); obj.Compute(); result += obj.Result.ToString() + "\r\n"; result += (5.0 / 3.0).ToString() + "\r\n"; } private double[] surface(double[] u) { double[] x = new double[3]; x[0] = u[0] + u[1]; x[1] = u[0] * u[0] - u[1] * u[1]; x[2] = u[0] * u[1]; return x; } private double dxdy(double x, double y, double z) { return y; } private double dydz(double x, double y, double z) { return x; } private double dzdx(double x, double y, double z) { return 0.0; } } } /* 1.66667035219734 1.66666666666667 */