extrema property

List<double> extrema

Returns the parameter values that correspond with extrema on both the x and y axes.

Implementation

List<double> get extrema {
  final roots = <double>[];
  roots.addAll(extremaOnX);
  roots.addAll(extremaOnY);

  final rootsSet = Set<double>.from(roots);
  final uniqueRoots = rootsSet.toList();
  uniqueRoots.sort();
  return uniqueRoots;
}