(x: Interval | IntervalResult)
| 565 | } |
| 566 | |
| 567 | /** |
| 568 | * Inverse hyperbolic secant: asech(x) = acosh(1/x). |
| 569 | * |
| 570 | * Domain: (0, 1]. Has a singularity at x = 0. |
| 571 | */ |
| 572 | export function asech(x: Interval | IntervalResult): IntervalResult { |
| 573 | const unwrapped = unwrapOrPropagate(x); |
| 574 | if (!Array.isArray(unwrapped)) return unwrapped; |
| 575 | const [xVal] = unwrapped; |
| 576 | if (containsZero(xVal)) { |
| 577 | return { kind: 'singular', at: 0 }; |
| 578 | } |
no test coverage detected