NonLinear constructor

const NonLinear({
  1. required String function,
  2. required double tolerance,
  3. required int maxSteps,
})

Creates a new instance of a nonlinear equation solver which asks for:

  • the expression function to be solved;
  • the accuracy tolerance of the root-finding algorithm;
  • the maximum iterations maxSteps the algorithm has to do.

Implementation

const NonLinear({
  required this.function,
  required this.tolerance,
  required this.maxSteps,
});