Steffensen constructor
const
Steffensen({})
Instantiates a new object to find the root of an equation by using the Steffensen method.
function
: the function f(x)- x0: the initial guess x0
tolerance
: how accurate the algorithm has to bemaxSteps
: how many iterations at most the algorithm has to do
Implementation
const Steffensen({
required String function,
required this.x0,
double tolerance = 1.0e-10,
int maxSteps = 15,
}) : super(
function: function,
tolerance: tolerance,
maxSteps: maxSteps,
);