Java Utililty Methods acot

List of utility methods to do acot

Description

The list of methods to do acot are organized into topic(s).

Method

doubleacot(double x)
Returns the arc cotangent of a value.
return Math.atan(1.0 / x);
doubleacot(double x)
acot
if (x != 0) {
    return Math.atan(1 / x);
} else {
    throw new ArithmeticException();
doubleacot(final T value)
Return the arcus cotangens of value in radian.
double rc;
double d = value.doubleValue();
if (0D == d) {
    rc = PI_HALF;
else if (d > 0D) {
    rc = Math.atan(1D / d);
else {
    rc = Math.PI + Math.atan(1D / d);
return rc;