Update Item Specifications

Glen Whitney 2025-04-03 05:40:38 +00:00
parent 4d879a6505
commit 72871df709

@ -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))