refactor: rename absquare to normsq and add norm

This commit is contained in:
Glen Whitney 2025-05-02 21:20:45 -07:00
parent edfba089e3
commit ec97b0e20a
7 changed files with 32 additions and 20 deletions

View file

@ -39,7 +39,7 @@ export const indistinguishable = [
return Returns(V, (v, e, [[rT, aT]]) => v.map(f => {
return math.indistinguishable(f, e, rT, aT)
}))
}
}
const same = math.indistinguishable.resolve([VComp, E, RT, AT])
return Returns(
Vector(same.returns),
@ -54,7 +54,7 @@ export const indistinguishable = [
return Returns(V, (e, v) => v.map(f => {
return math.indistinguishable.resolve([E, math.typeOf(f)])(e, f)
}))
}
}
const same = math.indistinguishable.resolve([E, VComp])
return Returns(
Vector(same.returns), (e, v) => v.map(f => same(e, f)))