MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / exp

Function exp

src/compute-engine/interval/elementary.ts:316–321  ·  view source on GitHub ↗
(x: Interval | IntervalResult)

Source from the content-addressed store, hash-verified

314
315/**
316 * Exponential function (e^x).
317 *
318 * Always valid, monotonically increasing.
319 */
320function 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) });

Callers 4

gen_cases.pyFile · 0.50
gen.pyFile · 0.50
gen_solve.pyFile · 0.50

Calls 3

unwrapOrPropagateFunction · 0.90
okFunction · 0.90
expMethod · 0.65

Tested by

no test coverage detected