public abstract class RootFinder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List<Term> |
functions
The (multi-dimensional) function of this root finder.
|
static double |
PRECISION
The precision for finding roots.
|
private java.util.Map<Variable,Term> |
startingPoint
The starting point of this root finder.
|
Constructor and Description |
---|
RootFinder(java.util.List<Term> functions,
java.util.Map<Variable,Term> startingPoint)
Creates a new root finder for the given starting point and the given
(multi-dimensional) function
|
RootFinder(Term function)
Creates a new root finder for the given function.
|
RootFinder(Term function,
java.util.Map<Variable,Term> startingPoint)
Creates a new root finder for the given starting point and the given function
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Term> |
getFunctions()
Returns the function of this root finder.
|
java.util.Map<Variable,Term> |
getStartingPoint()
Returns the starting point of this finder.
|
abstract java.util.Map<Variable,Term> |
randomRoot()
Determines the values for the variables appearing in the function such
the function evaluates to zero.
|
void |
setStartingPoint(java.util.Map<Variable,Term> startingPoint)
sets the starting point of this root finder.
|
public static double PRECISION
private java.util.List<Term> functions
public RootFinder(Term function)
function
- a termpublic RootFinder(Term function, java.util.Map<Variable,Term> startingPoint)
startingPoint
- public void setStartingPoint(java.util.Map<Variable,Term> startingPoint)
public java.util.Map<Variable,Term> getStartingPoint()
public java.util.List<Term> getFunctions()
public abstract java.util.Map<Variable,Term> randomRoot() throws GeneralMathException
GeneralMathException
- if something went wrong.