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

Function lnSign

src/compute-engine/library/arithmetic.ts:201–209  ·  view source on GitHub ↗

Determines sgn of ln(x)

(x: Expression)

Source from the content-addressed store, hash-verified

199
200/** The tier of a real quotient whose divisor may be zero: a finite real,
201 * the projective `~oo` of `1/0`, or the `NaN` of `0/0` — never a non-real
202 * finite complex, so this is strictly tighter than `number` (lattice
203 * ruling L3: over-admit only within the `infinity` branch). */
204// Built as a literal node, not `parseType(...)`: this runs at module
205// initialization, and under jest's CommonJS module graph `parse.js` is not
206// yet initialized when this file's top level executes (a temporal-dead-zone
207// `ReferenceError`); `tsx` happened to order the modules differently.
208// Frozen: returned BY REFERENCE from the Divide and Power handlers and
209// stored as-is (the parse fast path and the widening walker both return a
210// valid, unchanged node by identity), so an in-place mutation anywhere
211// downstream would corrupt every later pole type in the process — the
212// same rationale as `EXTENDED_REAL_TYPE` in `common/type/primitive.ts`.

Callers 1

arithmetic.tsFile · 0.85

Calls 5

isGreaterMethod · 0.65
isGreaterEqualMethod · 0.65
isLessEqualMethod · 0.65
isLessMethod · 0.65
isSameMethod · 0.65

Tested by

no test coverage detected