vec_math
Class VectorRoot

java.lang.Object
  extended by vec_math.VectorRoot

public class VectorRoot
extends Object

A class to find a multidimensional root of a set of equations using a multidimension newton-raphson, according to Num. Rec. p379ff.


Field Summary
private static int MAXITERATIONS
          Maximum number of iterations.
private static double MAXOFF
          Quadratic tolerance allowed for the solution offset.
private static double MAXSTEP
          Quadratic tolerance allowed for the solution offset.
 
Constructor Summary
VectorRoot()
           
 
Method Summary
static VectorG newton(VectorG start, VectorDifferentiable f)
          Does a multidimensional root-finding of the VectorDifferentiable stated.
static VectorG newton(VectorG start, VectorDifferentiable f, int maxiter)
          Does a multidimensional root-finding of the VectorDifferentiable stated.
static VectorG newton(VectorG start, VectorDifferentiable f, int maxiter, double maxoff, double maxstep)
          Does a multidimensional root-finding of the VectorDifferentiable stated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAXITERATIONS

private static final int MAXITERATIONS
Maximum number of iterations.

See Also:
Constant Field Values

MAXOFF

private static final double MAXOFF
Quadratic tolerance allowed for the solution offset.

See Also:
Constant Field Values

MAXSTEP

private static final double MAXSTEP
Quadratic tolerance allowed for the solution offset.

See Also:
Constant Field Values
Constructor Detail

VectorRoot

public VectorRoot()
Method Detail

newton

public static final VectorG newton(VectorG start,
                                   VectorDifferentiable f)
Does a multidimensional root-finding of the VectorDifferentiable stated. The input Vector to start at must be sufficient close to the root for this method to converge. If no convergence is reaced, null is returned.


newton

public static final VectorG newton(VectorG start,
                                   VectorDifferentiable f,
                                   int maxiter)
Does a multidimensional root-finding of the VectorDifferentiable stated. The input Vector to start at must be sufficient close to the root for this method to converge. If no convergence is reaced, null is returned.


newton

public static final VectorG newton(VectorG start,
                                   VectorDifferentiable f,
                                   int maxiter,
                                   double maxoff,
                                   double maxstep)
Does a multidimensional root-finding of the VectorDifferentiable stated. The input Vector to start at must be sufficient close to the root for this method to converge. If no convergence is reaced, null is returned.