Secant constructor
const
Secant({})
Instantiates a new object to find the root of an equation by using the Secant method. Ideally, the two guesses should be close to the root.
Implementation
const Secant({
required String function,
required this.a,
required this.b,
double tolerance = 1.0e-10,
int maxSteps = 15,
}) : super(
function: function,
tolerance: tolerance,
maxSteps: maxSteps,
);