(x: Interval | IntervalResult)
| 372 | } |
| 373 | |
| 374 | /** |
| 375 | * Hyperbolic tangent. |
| 376 | * |
| 377 | * Domain: all reals, Range: (-1, 1), monotonically increasing. |
| 378 | */ |
| 379 | export function tanh(x: Interval | IntervalResult): IntervalResult { |
| 380 | const unwrapped = unwrapOrPropagate(x); |
| 381 | if (!Array.isArray(unwrapped)) return unwrapped; |
| 382 | const [xVal] = unwrapped; |
no test coverage detected