Roots of a function: Difference between revisions

Content added Content deleted
Line 702: Line 702:
=={{header|Dart}}==
=={{header|Dart}}==
{{trans|Scala}}
{{trans|Scala}}
<lang Dart>import 'dart:async';
<lang Dart>

double fn(double x) => x * x * x - 3 * x * x + 2 * x;
double fn(double x) => x * x * x - 3 * x * x + 2 * x;