(x: Interval | IntervalResult)
| 481 | } |
| 482 | |
| 483 | /** |
| 484 | * Inverse secant: asec(x) = acos(1/x). |
| 485 | * |
| 486 | * Domain: |x| >= 1. Has a singularity at x = 0. |
| 487 | */ |
| 488 | export function asec(x: Interval | IntervalResult): IntervalResult { |
| 489 | const unwrapped = unwrapOrPropagate(x); |
| 490 | if (!Array.isArray(unwrapped)) return unwrapped; |
| 491 | const [xVal] = unwrapped; |
| 492 | if (containsZero(xVal)) { |
| 493 | return { kind: 'singular', at: 0 }; |
| 494 | } |
no test coverage detected