determinantDD static method

DD determinantDD(
  1. DD x1,
  2. DD y1,
  3. DD x2,
  4. DD y2,
)

Computes the determinant of the 2x2 matrix with the given entries.

@param x1 a matrix entry @param y1 a matrix entry @param x2 a matrix entry @param y2 a matrix entry @return the determinant of the matrix of values

Implementation

static DD determinantDD(DD x1, DD y1, DD x2, DD y2) {
  DD det = x1.multiplyDD(y2).selfSubtractDD(y1.multiplyDD(x2));
  return det;
}