(x: Interval | IntervalResult)
| 314 | |
| 315 | /** |
| 316 | * Exponential function (e^x). |
| 317 | * |
| 318 | * Always valid, monotonically increasing. |
| 319 | */ |
| 320 | function expRaw(x: Interval | IntervalResult): IntervalResult { |
| 321 | const unwrapped = unwrapOrPropagate(x); |
| 322 | if (!Array.isArray(unwrapped)) return unwrapped; |
| 323 | const [xVal] = unwrapped; |
| 324 | return ok({ lo: Math.exp(xVal.lo), hi: Math.exp(xVal.hi) }); |
no test coverage detected