Update Item Specifications
parent
4d879a6505
commit
72871df709
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ A few things to note in this example: now clients of the eventual bundle can use
|
||||||
|
|
||||||
Finally, let's see how the troubling example of absquare in https://code.studioinfinity.org/glen/pocomath/issues/55 would pan out:
|
Finally, let's see how the troubling example of absquare in https://code.studioinfinity.org/glen/pocomath/issues/55 would pan out:
|
||||||
```
|
```
|
||||||
export const absquare = onType([Complex], (math, [T]) => {
|
export const absquare = onType(Complex, (math, [T]) => {
|
||||||
const absq = math.absq.resolve(T.Base)
|
const absq = math.absq.resolve(T.Base)
|
||||||
const add = math.add.resolve(absq.returns, absq.returns)
|
const add = math.add.resolve(absq.returns, absq.returns)
|
||||||
return Returns(add.returns, z => add(absq(z.re), absq(z.im))
|
return Returns(add.returns, z => add(absq(z.re), absq(z.im))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue