acoth method
Element-wise hyperbolic arc-cotangent
Implementation
Matrix acoth() {
Matrix result = Matrix.zeros(rowCount, columnCount, isDouble: true);
for (int i = 0; i < rowCount; i++) {
for (int j = 0; j < columnCount; j++) {
num val = this[i][j];
result[i][j] = 0.5 * math.log((val + 1) / (val - 1));
}
}
return result;
}