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

Function pellSatisfies

test/compute-engine/diophantine.test.ts:362–364  ·  view source on GitHub ↗
(D: bigint, N: bigint, x: bigint, y: bigint)

Source from the content-addressed store, hash-verified

360//
361
362function pellSatisfies(D: bigint, N: bigint, x: bigint, y: bigint): boolean {
363 return x * x - D * y * y === N;
364}
365
366/** `(x1,y1)·(x2,y2)` in `ℤ[√D]`. */
367function pellMul(

Callers 3

Calls

no outgoing calls

Tested by

no test coverage detected