(D: bigint, N: bigint, x: bigint, y: bigint)
| 360 | // |
| 361 | |
| 362 | function 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]`. */ |
| 367 | function pellMul( |
no outgoing calls
no test coverage detected