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

Function div

src/compute-engine/numerics/rationals.ts:62–64  ·  view source on GitHub ↗
(lhs: Rational, rhs: Rational)

Source from the content-addressed store, hash-verified

60 * so every ordinary value keeps the same double bit for bit. (A bigint part
61 * between `2^53` and the largest double is rounded when it is converted, so
62 * that quotient is rounded twice and can be one unit in the last place from
63 * the nearest double; this is kept so the doubles do not change.)
64 *
65 * A bigint numerator or denominator can be larger than the largest double
66 * (about `1.8·10^308`). Its `Number()` is then `Infinity`, and the quotient
67 * of the two conversions is wrong: `(10^400 + 1)/10^400` gave

Callers 2

determinantFunction · 0.50
inverseFunction · 0.50

Calls 2

mulFunction · 0.70
inverseFunction · 0.70

Tested by

no test coverage detected