(x: Interval | IntervalResult)
| 535 | } |
| 536 | |
| 537 | /** |
| 538 | * Inverse hyperbolic cotangent: acoth(x) = atanh(1/x). |
| 539 | * |
| 540 | * Domain: |x| > 1. Has a singularity at x = 0. |
| 541 | */ |
| 542 | export function acoth(x: Interval | IntervalResult): IntervalResult { |
| 543 | const unwrapped = unwrapOrPropagate(x); |
| 544 | if (!Array.isArray(unwrapped)) return unwrapped; |
| 545 | const [xVal] = unwrapped; |
| 546 | if (containsZero(xVal)) { |
| 547 | return { kind: 'singular', at: 0 }; |
| 548 | } |
no test coverage detected