using System; using System.Collections.Generic; using System.Linq; using System.Text; using V = Science.Mathematics.VectorCalculus; namespace VectorCalculus5Ed.Chapter2.Section4 { public class Example07 { public Example07() { } private string result; public string Result { get{return result;} } public void Compute() { Science.Mathematics.Function.ToLastType map = new Science.Mathematics.Function.ToLastType(func); V.Path p = new V.Path(map); V.TangentVector v = new V.TangentVector(p, 2.0); v.Compute(); result += v.Result.ToString() + "\r\n"; result += (1.0 - Math.Cos(2.0)).ToString() + "\t "; result += (Math.Sin(2.0)).ToString() + "\r\n"; } private double[] func(double t) { double[] r = new double[2]; r[0] = t - Math.Sin(t); r[1] = 1.0 - Math.Cos(t); return r; } } } /* (1.41614683654772,0.909297426824558) 1.41614683654714 0.909297426825682 */