rvl.util
Class SolveObject

java.lang.Object
  |
  +--rvl.util.UniFunction
        |
        +--rvl.util.SolveObject

public class SolveObject
extends UniFunction

This class allows one to set up a hook in any object to reference in Solve.illinois() or Solve.search(). Variables exist that allow a specification of the domain, whether the endpoints are open or closed, and various convergence criteria. Instances should define the "of" method, and modify the bounds and other parameters as appropriate. To use, have the class implement Solvable, set up a suitable solveHook(m,x) method that returns a function value at x for each desired mode m. Define new SolveObject variables where needed; modify the bounds and convergence parameters as appropriate.

See Also:
Solve

Field Summary
 boolean closedMax
           
 boolean closedMin
           
 double feps
           
 int maxIter
          Controls for solving process
 int maxSearch
          Controls for solving process
 boolean verbose
           
 double xeps
           
 double xMax
          Domain of the function
 double xMin
          Domain of the function
 
Constructor Summary
SolveObject(int m, Solvable p)
          Instantiate a SolveObject.
 
Method Summary
 double of(double x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xMin

public double xMin
Domain of the function

xMax

public double xMax
Domain of the function

closedMin

public boolean closedMin

closedMax

public boolean closedMax

maxIter

public int maxIter
Controls for solving process

maxSearch

public int maxSearch
Controls for solving process

feps

public double feps

xeps

public double xeps

verbose

public boolean verbose
Constructor Detail

SolveObject

public SolveObject(int m,
                   Solvable p)
Instantiate a SolveObject.
Parameters:
m - mode number passed to solveHook
p - object containing the solveHook
Method Detail

of

public double of(double x)
Overrides:
of in class UniFunction