View Javadoc

1   package org.lcsim.recon.tracking.trfutil;
2   // Test interface -- this is not a true root finder.
3   
4   public class RootFinderTest implements RootFinder
5   {
6       
7       public StatusDouble evaluate(double x)
8       {
9           return new StatusDouble(1,x);
10      }
11      public StatusDouble solve(double x1, double x2)
12      {
13          return new StatusDouble(2,x1*x2);
14      }
15  }