Roots of a function: Difference between revisions

Line 702:
=={{header|Dart}}==
{{trans|Scala}}
<lang Dartdart>double fn(double x) => x * x * x - 3 * x * x + 2 * x;
 
double findRoots(Function(double) f, double start, double stop, double step, double epsilon) {