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

Function neg

src/compute-engine/numerics/rationals.ts:168–170  ·  view source on GitHub ↗
(x: Rational)

Source from the content-addressed store, hash-verified

166export function neg(x: [bigint, bigint]): [bigint, bigint];
167export function neg(x: Rational): Rational;
168export function neg(x: Rational): Rational {
169 return [-x[0], x[1]] as Rational;
170}
171
172export function inverse(
173 x: [SmallInteger, SmallInteger]

Callers 11

mulMethod · 0.90
serializeJsonFunctionFunction · 0.90
negMethod · 0.90
invMethod · 0.90
sqrtMethod · 0.90
absMethod · 0.90
negComponentFunction · 0.90
isSkewSymmetricFunction · 0.50
determinantFunction · 0.50
inverseFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected