(x: Interval | IntervalResult)
| 511 | } |
| 512 | |
| 513 | /** |
| 514 | * Hyperbolic cosecant: csch(x) = 1/sinh(x). |
| 515 | * |
| 516 | * Has a singularity at x = 0. |
| 517 | */ |
| 518 | export function csch(x: Interval | IntervalResult): IntervalResult { |
| 519 | const unwrapped = unwrapOrPropagate(x); |
| 520 | if (!Array.isArray(unwrapped)) return unwrapped; |
| 521 | const [xVal] = unwrapped; |
| 522 | if (containsZero(xVal)) { |
| 523 | return { kind: 'singular', at: 0 }; |
| 524 | } |
no test coverage detected