(x: Interval | IntervalResult)
| 550 | } |
| 551 | |
| 552 | /** |
| 553 | * Inverse hyperbolic cosecant: acsch(x) = asinh(1/x). |
| 554 | * |
| 555 | * Domain: x != 0. |
| 556 | */ |
| 557 | export function acsch(x: Interval | IntervalResult): IntervalResult { |
| 558 | const unwrapped = unwrapOrPropagate(x); |
| 559 | if (!Array.isArray(unwrapped)) return unwrapped; |
| 560 | const [xVal] = unwrapped; |
| 561 | if (containsZero(xVal)) { |
| 562 | return { kind: 'singular', at: 0 }; |
| 563 | } |
no test coverage detected