Freigeben über


SourceCodeViewerTest

This is a test

     private static double ComputeNextPoint(double p0, double p1, Function f)
    {
      double fp0 = f(p0);
      double fp1 = f(p1);
      double foo = p1 - fp1 * (p1-p0) / (fp1-fp0); // the basic secant formula
      Console.WriteLine("p0= " + p0.ToString("N9") + "  p1= " + p1.ToString("N9") + 
         "  result= " + foo.ToString("N9"));
      return foo; 
    }