Parameters
Func<double, double> f
The function to find roots from.
double guess
The first guess of the root within the bounds specified.
double secondGuess
The second guess of the root within the bounds specified.
double lowerBound
The low value of the range where the root is supposed to be. Aborts if it leaves the interval. Default MinValue.
double upperBound
The high value of the range where the root is supposed to be. Aborts if it leaves the interval. Default MaxValue.
double accuracy
Desired accuracy. The root will be refined until the accuracy or the maximum number of iterations is reached. Default 1e-8. Must be greater than 0.
int maxIterations
Maximum number of iterations. Default 100.
Return
double
Returns the root with the specified accuracy.