havFromSin static method

double havFromSin(
  1. double x
)

Implementation

static double havFromSin(double x) {
  double x2 = x * x;
  return x2 / (1 + sqrt(1 - x2)) * .5;
}