log the reflectedType of complex square root
This commit is contained in:
parent
4947a80cb4
commit
ce974e2a99
@ -79,7 +79,7 @@ $implement!('sqrt',
|
|||||||
& Dependencies<'zero' | 'complex', T>
|
& Dependencies<'zero' | 'complex', T>
|
||||||
& Dependencies<'absquare' | 're' | 'divideReal', Complex<T>>
|
& Dependencies<'absquare' | 're' | 'divideReal', Complex<T>>
|
||||||
& {
|
& {
|
||||||
addTR: Signature<'addReal', T>,
|
addTR: Signature<'addReal', T>,
|
||||||
addRR: Signature<'add', RealType<T>>,
|
addRR: Signature<'add', RealType<T>>,
|
||||||
addCR: Signature<'addReal', Complex<T>>
|
addCR: Signature<'addReal', Complex<T>>
|
||||||
}):
|
}):
|
||||||
@ -98,5 +98,3 @@ $implement!('sqrt',
|
|||||||
const denom = dep.conservativeSqrt(denomsq)
|
const denom = dep.conservativeSqrt(denomsq)
|
||||||
return dep.divideReal(num, denom)
|
return dep.divideReal(num, denom)
|
||||||
})
|
})
|
||||||
|
|
||||||
export const conservativeSqrt = sqrt
|
|
||||||
|
@ -21,4 +21,4 @@ console.log('Result is', myabs)
|
|||||||
|
|
||||||
// Check type of the generic square implementation
|
// Check type of the generic square implementation
|
||||||
console.log('Type of square is', Specifications.generic.square.reflectedType)
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user