From ce974e2a99b8f60b96b1a7e29cbb847f7992c840 Mon Sep 17 00:00:00 2001 From: Jos de Jong Date: Thu, 21 Sep 2023 14:24:52 +0200 Subject: [PATCH] log the reflectedType of complex square root --- src/Complex/arithmetic.ts | 4 +--- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Complex/arithmetic.ts b/src/Complex/arithmetic.ts index 501d09f..5776cd6 100644 --- a/src/Complex/arithmetic.ts +++ b/src/Complex/arithmetic.ts @@ -79,7 +79,7 @@ $implement!('sqrt', & Dependencies<'zero' | 'complex', T> & Dependencies<'absquare' | 're' | 'divideReal', Complex> & { - addTR: Signature<'addReal', T>, + addTR: Signature<'addReal', T>, addRR: Signature<'add', RealType>, addCR: Signature<'addReal', Complex> }): @@ -98,5 +98,3 @@ $implement!('sqrt', const denom = dep.conservativeSqrt(denomsq) return dep.divideReal(num, denom) }) - -export const conservativeSqrt = sqrt diff --git a/src/index.ts b/src/index.ts index 4419dee..8b4ecfd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -21,4 +21,4 @@ console.log('Result is', myabs) // Check type of the generic square implementation console.log('Type of square is', Specifications.generic.square.reflectedType) -console.log('Type of complex square root is', Specifications.Complex.sqrt.reflectedType) +console.log('Type of complex square root is', Specifications.complex.sqrt.reflectedType)