public class NoRootFoundException
extends java.lang.Exception
Exception thrown when it fails to find a root.
It may contain some information about the state before it throws the exception.
It may be be useful in situations where an (approximate) root is needed at the sacrifice of accuracy.| Constructor and Description |
|---|
NoRootFoundException(double x,
double fx)
Construct a
NoRootFoundException. |
| Modifier and Type | Method and Description |
|---|---|
double |
fx()
Get f(x).
|
double |
x()
the best approximate root found so far
|
public NoRootFoundException(double x,
double fx)
NoRootFoundException.
This object gives a snapshot/information of the uniroot algorithm before it throws the exception.x - the best approximate root found before throwing exceptionfx - the function value f(x)