public class NoRootFoundException extends 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
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
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)Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.