using System; using System.Collections.Generic; using System.Linq; using System.Text; using V = Science.Mathematics.VectorCalculus; namespace VectorCalculus5Ed.Chapter4.Section2 { public class Example04 { public Example04() { } private string result; public string Result { get{return result;} } public void Compute() { Science.Mathematics.Function.ToLastType f = new Science.Mathematics.Function.ToLastType(func); V.Path p = new V.Path(f); V.ArcLength al = new V.ArcLength(p, 0.0, 2.0*Math.PI); al.Compute(); result += al.Result.ToString() + "\r\n"; } private double[] func(double t) { double[] c = new double[2]; c[0] = t - Math.Sin(t); c[1] = 1.0 - Math.Cos(t); return c; } } } // 7.99999999998293