cbrt method

double cbrt(
  1. double x
)

Computes the cube root of x.

Implementation

double cbrt(double x) {
  if (x < 0) {
    return -dart_math.pow(-x, 1.0 / 3.0).toDouble();
  }
  return dart_math.pow(x, 1.0 / 3.0).toDouble();
}