Update Item Specifications
parent
005f49e691
commit
cc4b8d9929
1 changed files with 0 additions and 1 deletions
|
@ -64,7 +64,6 @@ export const sqrt = onType(Number, math => {
|
||||||
return Returns(
|
return Returns(
|
||||||
Union(Number, Complex(Number)),
|
Union(Number, Complex(Number)),
|
||||||
a => n < 0 ? complex(0, Math.sqrt(-a)) : Math.sqrt(a)
|
a => n < 0 ? complex(0, Math.sqrt(-a)) : Math.sqrt(a)
|
||||||
if (isNaN(a)) return NaN
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue